Beispiel #1
0
        private void GoToLearnButton_Click(object sender, EventArgs e)
        {
            string[] blocklist = { BlockComboBox.Text };
            this.Hide();
            LearnQuiz lq = new LearnQuiz(blocklist);

            lq.Closed += (s, args) => this.Show();
            lq.Show();
        }
Beispiel #2
0
        private void StartButton_Click(object sender, EventArgs e)
        {
            metroButton1.Select();
            if (ChoosedBlocksListBox.Items.Count > 0)
            {
                string[] blocklist = new string[ChoosedBlocksListBox.Items.Count];
                for (int i = 0; i < ChoosedBlocksListBox.Items.Count; i++)
                {
                    blocklist[i] = ChoosedBlocksListBox.Items[i].ToString();
                }

                this.Hide();
                LearnQuiz lq = new LearnQuiz(blocklist);
                lq.Closed += (s, args) => this.Close();
                lq.Show();
            }
            else
            {
                MessageBox.Show("Выберите блок!");
            }
        }