Ejemplo n.º 1
0
        public override bool Manager()
        {
            ConsoleBasicDraw.DrawFlatText("Types", Console.CursorTop, ConsoleColor.DarkMagenta,
                                          ConsoleColor.White);

            string[] types   = MetaExplorer.GetTypes(this.module);
            var      listBox = ConsoleListBox.FirstBreakItemFactory(
                types, Console.CursorTop + 1,
                ConsoleColor.White, ConsoleColor.DarkBlue);

            listBox.MakeUserChoose();
            if (listBox.SelectedIndex > 0)
            {
                this.RunNext(listBox.SelectedIndex - 1);
                return(true);
            }

            return(false);
        }
Ejemplo n.º 2
0
        public override bool Manager()
        {
            string[] constructors = MetaExplorer.GetConstructors(this.type);
            this.DrawListBox("Constructors", constructors);
            string[] fields = MetaExplorer.GetFields(this.type);
            this.DrawListBox("Fields", fields);
            string[] properties = MetaExplorer.GetProperties(this.type);
            this.DrawListBox("Properties", properties);
            string[] methods = MetaExplorer.GetMethods(this.type);
            this.DrawListBox("Methods", methods);
            string[] events = MetaExplorer.GetEvents(this.type);
            this.DrawListBox("Events", events);

            ConsoleBasicDraw.DrawFlatBox(Console.CursorTop, 2, ConsoleColor.White);
            ConsoleBasicDraw.DrawFlatText("Press any key to go back.", Console.CursorTop, ConsoleColor.Blue,
                                          ConsoleColor.White);

            Console.ReadKey();
            return(false);
        }
Ejemplo n.º 3
0
        public override bool Manager()
        {
            ConsoleBasicDraw.DrawFlatText("Modules:", Console.CursorTop, ConsoleColor.DarkMagenta,
                                          ConsoleColor.White);

            string[] modules = MetaExplorer.GetModules(this.assembly);
            var      listBox = ConsoleListBox.FirstBreakItemFactory(
                modules, Console.CursorTop + 1,
                ConsoleColor.White, ConsoleColor.DarkBlue);

            listBox.MakeUserChoose();
            if (listBox.SelectedIndex != 0)
            {
                Module    module     = assembly.GetModule(listBox.Selected);
                BaseFrame childFrame = new ModuleFrame(module);
                childFrame.Run();
                return(true);
            }

            return(false);
        }