Example #1
0
        partial void ShowPreferencesDialog(MonoMac.Foundation.NSObject sender)
        {
            PreferencesDialogController prefs = new PreferencesDialogController();

            prefs.Window.MakeKeyAndOrderFront(this.mainWindow);
            prefs.Window.SetFrameTopLeftPoint(new PointF(
                                                  mainWindow.Frame.Left +
                                                  ((mainWindow.Frame.Right - prefs.Window.Frame.Right) / 2),
                                                  mainWindow.Frame.Bottom - 20));
            NSApplication.SharedApplication.RunModalForWindow(prefs.Window);
        }
Example #2
0
partial         void ShowPreferencesDialog(MonoMac.Foundation.NSObject sender)
        {
            PreferencesDialogController prefs = new PreferencesDialogController ();
            prefs.Window.MakeKeyAndOrderFront (this.mainWindow);
            prefs.Window.SetFrameTopLeftPoint (new PointF (
                mainWindow.Frame.Left +
                ((mainWindow.Frame.Right - prefs.Window.Frame.Right) / 2),
                mainWindow.Frame.Bottom - 20));
            NSApplication.SharedApplication.RunModalForWindow (prefs.Window);
        }