// Not using "Instance" since this Singleton is more of an action
        public static void CreateAndShow()
        {
            if (_settingsWindow == null || _settingsWindow.IsLoaded == false)
            {
                _settingsWindow = new SettingsWindow();
            }

            _settingsWindow.Show();
            _settingsWindow.Activate();

            WindowPositioner.MoveToMouse(_settingsWindow);
        }
        public static void CreateAndShow()
        {
            if (_aboutWindow == null || _aboutWindow.IsLoaded == false)
            {
                _aboutWindow = new AboutWindow();
            }

            _aboutWindow.Show();
            _aboutWindow.Activate();

            WindowPositioner.MoveToMouse(_aboutWindow);
        }
Esempio n. 3
0
        // Not using "Instance" since this Singleton is more of an action
        public static void CreateAndShow()
        {
            if (_instance == null || _instance.IsLoaded == false)
            {
                _instance = new JoinMeetingDialog();
            }

            _instance.Show();
            _instance.Activate();

            WindowPositioner.MoveToMouse(_instance, leftOffset: 50, topOffset: 50);

            _instance.GetPinsFromClipboard();
        }
Esempio n. 4
0
        // Not using "Instance" since this Singleton is more of an action
        public static void CreateAndShow(ChimeMeetingMenuItem meetingStartingNow)
        {
            if (_meetingNotificationWindow == null || _meetingNotificationWindow.IsLoaded == false)
            {
                _meetingNotificationWindow = new MeetingNotificationWindow();
            }

            _meetingNotificationWindow.CurrentMeetings = (ChimeMeetingMenuItems)(App.TrayIcon.DataContext);

            _meetingNotificationWindow.ResetAutoHideTimer();

            _meetingNotificationWindow.DefaultMeeting = meetingStartingNow;

            // refresh DataContext since we just set default meeting
            _meetingNotificationWindow.DataContext = _meetingNotificationWindow;

            WindowPositioner.MoveToMouse(_meetingNotificationWindow);
            _meetingNotificationWindow.Show();
            _meetingNotificationWindow.Topmost = true;
        }