public static void Exit() { if (Ini != null) { Ini.Save(); } Application.Exit(); }
public static bool Exit() { bool shouldClose = CloseProject(); //prompts for save if (!shouldClose) { return(false); } if (Ini != null) { Ini.Save(); } Application.Exit(); return(true); }