예제 #1
0
파일: Ide.cs 프로젝트: seijikun/monodevelop
 /// <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);
 }
예제 #2
0
        public override void Run()
        {
            Workbench wb = Workbench.Instance;

            if (wb != null)
            {
                wb.Close();
            }
        }
예제 #3
0
        public override void Run()
        {
            Workbench wb = Workbench.Instance;

            if (wb != null && !DisconnectCommand.CancelDisconnect())
            {
                wb.Close();
            }
        }
예제 #4
0
 /// <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);
 }
예제 #5
0
 /// <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);
 }