Esempio n. 1
0
 protected override void OnHandleMessageRecived(object sender, MessageArgs args)
 {
     if (args.Message.Action != Action.Show || ApplicationCurrent.MainWindow == null)
     {
         return;
     }
     if (MonoDevelop.Core.Platform.IsMac)
     {
         GtkWorkarounds.GrabDesktopFocus();
     }
     ApplicationCurrent.MainWindow.Present();
 }
Esempio n. 2
0
 internal void Show(string title)
 {
     this.RootWindow.Title = title;
     this.RootWindow.Realize();
     this.RootWindow.ShowAll();
     this.RootWindow.Show();
     this.RootWindow.CurrentLayout = "DefaultLayout";
     if (MonoDevelop.Core.Platform.IsMac)
     {
         GtkWorkarounds.GrabDesktopFocus();
     }
     this.RootWindow.Present();
     this.monitors.Initialize();
 }