Пример #1
0
        /// <summary>
        /// this is for closing from dialogs and unusual places. Normal closing of the form calls MainForm_Closing(), with SaveOptions there.
        /// </summary>
        public static void Exit()
        {
            LibSys.StatusBar.WriteLine("Project: Exit");

            Project.Closing();

            Application.Exit();
            Application.ExitThread();
            Environment.Exit(0);
        }