public override void FinishedLaunching (NSObject notification) { Engine.Instance.TerminateEvent += delegate() { new NSObject ().InvokeOnMainThread (() => { //NSApplication.SharedApplication.ReplyToApplicationShouldTerminate (true); NSApplication.SharedApplication.Terminate(new NSObject ()); }); }; UpdateInterfaceStyle (); mainWindowController = new MainWindowController (); bool startVisible = Engine.Instance.Storage.GetBool("gui.osx.visible"); if (startVisible) { mainWindowController.Window.MakeKeyAndOrderFront (this); } else { mainWindowController.Window.IsVisible = false; } NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); NSProcessInfo.ProcessInfo.DisableSuddenTermination (); // Already disabled by default MenuEvents (); }
public override void OnDeInit2 () { base.OnDeInit2 (); if (MainWindow != null) { new NSObject ().InvokeOnMainThread (() => { MainWindow.Close (); MainWindow = null; // 2.10.2 }); } }
public MainWindowDelegate (MainWindowController main) { m_main = main; }
public TableServersDelegate(MainWindowController main) { m_main = main; }
public TableAreasDelegate (MainWindowController main) { m_main = main; }
public TableServersDelegate (MainWindowController main) { m_main = main; }
public TableAreasDelegate(MainWindowController main) { m_main = main; }