Example #1
0
        /// <summary>
        /// Loads the main window.
        /// </summary>
        public void LoadMainWindow()
        {
            var factory = new VMPSCHighAvailabilityMainWindowControllerFactory();
            var mainWindowController = factory.GetMainWindowController();

            mainWindowController.Window.MakeKeyAndOrderFront(this);
            _activeMainWindows++;
        }
Example #2
0
        /// <summary>
        /// Initial sequence of steps to be called during application start
        /// </summary>
        /// <param name="appDelegate">App delegate.</param>
        public static void Init(AppDelegate appDelegate)
        {
            var welcomeScreenController = new WelcomeScreenCommonController();

            WelcomeScreenHelper.SetDisplayElements(welcomeScreenController);
            nint ret = NSApplication.SharedApplication.RunModalForWindow(welcomeScreenController.Window);

            if ((nint)VMIdentityConstants.DIALOGOK == ret)
            {
                var _factory             = new VMPSCHighAvailabilityMainWindowControllerFactory();
                var mainWindowController = _factory.GetMainWindowController() as VMPSCHighAvailabilityMainWindowController;
                mainWindowController.Window.MakeKeyAndOrderFront(appDelegate);
            }
        }