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); } }
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); } } } }
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); } } } }
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]); } }