예제 #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);
        }