コード例 #1
0
ファイル: Main.cs プロジェクト: razr/ea-audio
 // 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
0
ファイル: Class1.cs プロジェクト: jzarca01/ZamiGen_addin
        //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 "";
        }