private void Next_btn_Click(object sender, RoutedEventArgs e) { Window win; switch (learningVariants.SelectedIndex) { case 0: win = new ParallelCircuitWindow(); break; case 1: win = new SeriesCircuitWindow(); break; case 2: win = new ElectronicTasksWindow(); break; case 3: win = new LogicSchemeTestWindow(); break; case 4: win = new CustomCircuit(); break; default: win = new MainWindow(); break; } win.Show(); this.Close(); }
private void Button_Click_3(object sender, RoutedEventArgs e) { Window win; win = new ElectronicTasksWindow(); win.Show(); this.Close(); }