예제 #1
0
파일: ARConsole.cs 프로젝트: ArHShRn/ArLib
        /// <summary>
        /// Called after the Gui console terminated.
        /// </summary>
        /// <param name="asyncResult"></param>
        private static void NotifyGuiConsoleTerminated(IAsyncResult asyncResult)
        {
            //To-dos
            _bReleased = true;
            guiConsole = null;

            preErrMsg.Enqueue("A new CUI console is created to keep the app running.");
            CreateConsole(bInitedCMD, Prefix, false, Title);
            return;
        }
예제 #2
0
파일: ARConsole.cs 프로젝트: ArHShRn/ArLib
        /// <summary>
        /// A method to start a standard message loop of Gui console.
        /// </summary>
        private static void _CreateGuiConsole(string customPrefix, string title)
        {
            try
            {
                guiConsole = new GuiConsole(customPrefix, title);

                Application.EnableVisualStyles();
                Application.Run(guiConsole);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error!");
            }
        }