示例#1
0
 public static void Exit()
 {
     if (Ini != null)
     {
         Ini.Save();
     }
     Application.Exit();
 }
示例#2
0
        public static bool Exit()
        {
            bool shouldClose = CloseProject(); //prompts for save

            if (!shouldClose)
            {
                return(false);
            }
            if (Ini != null)
            {
                Ini.Save();
            }
            Application.Exit();
            return(true);
        }