示例#1
0
        partial void ShowPreferenceWindow(MonoMac.Foundation.NSObject sender)
        {
            Console.WriteLine("I can has perfences?");
            if (_preferencesWindowController == null)
            {
                _preferencesWindowController = new PreferencesWindowController();
            }

            //NSApplication.SharedApplication.RunModalForWindow(_preferencesWindowController.Window);
            _preferencesWindowController.ShowWindow(this);
            _preferencesWindowController.Window.Level = NSWindowLevel.Status;
            //_preferencesWindowController.Window.MakeMainWindow();
        }
示例#2
0
partial         void ShowPreferenceWindow(MonoMac.Foundation.NSObject sender)
        {
            Console.WriteLine("I can has perfences?");
            if(_preferencesWindowController == null)
                _preferencesWindowController = new PreferencesWindowController();

            //NSApplication.SharedApplication.RunModalForWindow(_preferencesWindowController.Window);
            _preferencesWindowController.ShowWindow(this);
            _preferencesWindowController.Window.Level = NSWindowLevel.Status;
            //_preferencesWindowController.Window.MakeMainWindow();
        }