internal static void Main() { InitEnvironment(); while (true) { Console.CursorVisible = true; if (Logging.DisabledState) { Console.Write(@"[Otanix] @ Digite o comando: "); } ConsoleCommandHandeling.InvokeCommand(Console.ReadLine()); } }
internal static void Main() { #region For Close Button disable IntPtr hMenu = Process.GetCurrentProcess().MainWindowHandle; IntPtr hSystemMenu = GetSystemMenu(hMenu, false); EnableMenuItem(hSystemMenu, SC_CLOSE, MF_GRAYED); RemoveMenu(hSystemMenu, SC_CLOSE, MF_BYCOMMAND); #endregion Program.InitEnvironment(); while (true) { Console.CursorVisible = true; if (Logging.DisabledState) { Console.Write("bfly> "); } ConsoleCommandHandeling.InvokeCommand(Console.ReadLine()); } }