コード例 #1
0
        public static void SelectLevel(MainWindow main)
        {
            SelectLevel level = new SelectLevel();

            level.Show();
            main.Close();
        }
コード例 #2
0
        public static void ChooseLevel(string level, SelectLevel select)
        {
            if (level == "Elementary")
            {
                Tests tests = new Tests(level);
                tests.Show();
                select.Close();
            }

            if (level == "Pre-Intermediate")
            {
                Tests tests = new Tests(level);
                tests.Show();
                select.Close();
            }
            if (level == "Intermediate")
            {
                Tests tests = new Tests(level);
                tests.Show();
                select.Close();
            }
            if (level == "Upper - Intermediate")
            {
                Tests tests = new Tests(level);
                tests.Show();
                select.Close();
            }
            if (level == "")
            {
                MainWindow main = new MainWindow();
                main.Show();
                select.Close();
            }
        }