Example #1
0
        public static CrosshairWindow OpenWindow()
        {
            if (_crosshairWindow == null)
            {
                _crosshairWindow = new CrosshairWindow();
                _crosshairWindow.Show();
            }

            return(_crosshairWindow);
        }
Example #2
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            settingsWindow  = new SettingsWindow();
            crosshairWindow = new CrosshairWindow();

            MainWindow = settingsWindow; // #TODO: Better handling of application shutdown

            settingsWindow.Show();
            crosshairWindow.Show();
        }