Exemple #1
0
        public static void Main(string[] args)
        {
            DeleteMenu(GetSystemMenu(GetConsoleWindow(), false), ScClose, MfBycommand);

            XmlConfigurator.Configure();

            Console.ForegroundColor = ConsoleColor.White;
            Console.CursorVisible   = false;

            var currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += PlusEnvironment.MyHandler;

            PlusEnvironment.Initialize();

            while (true)
            {
                if (Console.ReadKey(true).Key != ConsoleKey.Enter)
                {
                    continue;
                }

                Console.Write("plus> ");
                var input = Console.ReadLine();

                if (input == null || input.Length <= 0)
                {
                    continue;
                }

                var s = input.Split(' ')[0];
                ConsoleCommands.InvokeCommand(s);
            }
        }
Exemple #2
0
        public static void Main(string[] Args)
        {
            DeleteMenu(GetSystemMenu(GetConsoleWindow(), false), SC_CLOSE, MF_BYCOMMAND);

            XmlConfigurator.Configure();

            Console.ForegroundColor = ConsoleColor.White;
            Console.CursorVisible   = false;
            AppDomain currentDomain = AppDomain.CurrentDomain;

            currentDomain.UnhandledException += MyHandler;

            PlusEnvironment.Initialize();

            while (true)
            {
                if (Console.ReadKey(true).Key == ConsoleKey.Enter)
                {
                    Console.Write("plus> ");
                    string Input = Console.ReadLine();

                    if (Input.Length > 0)
                    {
                        string s = Input.Split(' ')[0];

                        ConsoleCommands.InvokeCommand(s);
                    }
                }
            }
        }
Exemple #3
0
        public static void Main()
        {
            InitEnvironment();
            while (true)
            {
                if (Console.ReadKey(true).Key == ConsoleKey.Enter)
                {
                    Console.Write("Command> ");
                    string Input = Console.ReadLine();

                    if (Input.Length > 0)
                    {
                        string s = Input.Split(' ')[0];

                        ConsoleCommands.InvokeCommand(s);
                    }
                }
            }
        }
Exemple #4
0
        private static void KeepAlive()
        {
            while (true)
            {
                if (Console.ReadKey(true).Key != ConsoleKey.Enter)
                {
                    continue;
                }

                Console.Write("plus> ");
                var input = Console.ReadLine();

                if (input != null && input.Length <= 0 || input == null)
                {
                    continue;
                }

                ConsoleCommands.InvokeCommand(input.Split(' ')[0]);
            }
        }