本文整理汇总了C#中EA.GetTreeSelectedPackage方法的典型用法代码示例。如果您正苦于以下问题:C# EA.GetTreeSelectedPackage方法的具体用法?C# EA.GetTreeSelectedPackage怎么用?C# EA.GetTreeSelectedPackage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EA
的用法示例。
在下文中一共展示了EA.GetTreeSelectedPackage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EA_GetMenuItems
// Called when user Click Add-Ins Menu item from within EA.
// Populates the Menu with our desired selections.
public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)
{
EA.Package aPackage = Repository.GetTreeSelectedPackage();
switch( MenuName )
{
case "":
return "-&Wind River";
case "-&Wind River":
string[] ar = { "&Audio Configuration", "", "About..." };
return ar;
}
return "";
}
示例2: EA_GetMenuItems
//Called when user Click Add-Ins Menu item from within EA.
//Populates the Menu with our desired selections.
public object EA_GetMenuItems(EA.Repository Repository, string Location, string MenuName)
{
EA.Package aPackage = Repository.GetTreeSelectedPackage();
switch (MenuName)
{
case "":
return "-&Test UC Model";
case "-&Test UC Model":
string[] subMenus = { "Prepare UC Model", "Create new scenario", "Create new version element", "Create new term element", "Create new KPI element", "Create new custom information", "Create new information exchanged", "Create new reference" };
return subMenus;
}
return "";
}