예제 #1
0
파일: Program.cs 프로젝트: fuding/Coolmemes
        internal static void Main()
        {
            InitEnvironment();

            while (true)
            {
                Console.CursorVisible = true;

                if (Logging.DisabledState)
                {
                    Console.Write(@"[Otanix] @ Digite o comando: ");
                }

                ConsoleCommandHandeling.InvokeCommand(Console.ReadLine());
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: nightwolf93/Bfly
        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());
            }
        }