Example #1
0
        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();
        }
Example #2
0
        //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;
        //        case 5:
        //            win = new MathModeling();
        //            break;
        //        default:
        //            win = new MainWindow();
        //            break;
        //    }
        //    win.Show();
        //    this.Close();
        //}

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window win;

            win = new ParallelCircuitWindow();

            win.Show();
            this.Close();
        }