public static CrosshairWindow OpenWindow() { if (_crosshairWindow == null) { _crosshairWindow = new CrosshairWindow(); _crosshairWindow.Show(); } return(_crosshairWindow); }
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(); }