/// <summary> /// Exits MonoDevelop. Returns false if the user cancels exiting. /// </summary> public static bool Exit() { if (workbench.Close()) { Gtk.Application.Quit(); return(true); } return(false); }
public override void Run() { Workbench wb = Workbench.Instance; if (wb != null) { wb.Close(); } }
public override void Run() { Workbench wb = Workbench.Instance; if (wb != null && !DisconnectCommand.CancelDisconnect()) { wb.Close(); } }
/// <summary> /// Exits MonoDevelop. Returns false if the user cancels exiting. /// </summary> public static async Task <bool> Exit() { if (await workbench.Close()) { Gtk.Application.Quit(); isMainRunning = false; return(true); } return(false); }
/// <summary> /// Exits MonoDevelop. Returns false if the user cancels exiting. /// </summary> public static async Task <bool> Exit() { IsExiting = true; if (await workbench.Close()) { Gtk.Application.Quit(); return(true); } IsExiting = false; return(false); }