private void ViewChangeBtn_Click(object sender, RoutedEventArgs e) { var nWindow = new AltWindow(); nWindow.Show(); this.Close(); }
private void Application_Startup(object sender, StartupEventArgs e) { Window sWindow; var startUpWindow = Settings.Default.StartUpWindow; if (startUpWindow.Equals("MainWindow.xaml")) { sWindow = new MainWindow(); } else { sWindow = new AltWindow(); } sWindow.Show(); }