Пример #1
0
        protected static void AddMenu(Assembly assemblyToAnalyze, string name, char option, ConsoleMenuDelegate menuDelegate, string header)
        {
            if (OtherMenus == null)
            {
                OtherMenus = new List <ConsoleMenu>();
            }

            ConsoleMenu menu = new ConsoleMenu();

            menu.HeaderText        = header;
            menu.MenuKey           = option;
            menu.MenuWriter        = menuDelegate;
            menu.Name              = name;
            menu.AssemblyToAnalyze = assemblyToAnalyze;
            AddMenu(menu);
        }
Пример #2
0
 protected static void AddMenu(ConsoleMenu menu)
 {
     OtherMenus.Add(menu);
 }