예제 #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
        //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 "";
        }