Пример #1
0
        private void createButton_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.editMode = false;
            Properties.Settings.Default.Save();
            NewCardsForm ncf = new NewCardsForm();

            ncf.ShowDialog();
        }
Пример #2
0
        private void backButton_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.backButtonPressed = true;
            Properties.Settings.Default.Save();
            Dispose();
            NewCardsForm ncf = new NewCardsForm();

            ncf.ShowDialog();
        }
Пример #3
0
 private void topic1Button_Click(object sender, EventArgs e)
 {
     if (quizSelectionComboBox.Text != "")
     {
         Properties.Settings.Default.currentSelectedQuiz = quizSelectionComboBox.Text;
         Properties.Settings.Default.Save();
         Dispose();
         if (userType == "study")
         {
             StudyForm sf = new StudyForm();
             sf.ShowDialog();
         }
         else if (userType == "edit")
         {
             NewCardsForm ncf = new NewCardsForm();
             ncf.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("Please select a quiz to " + userType + ".", "No Quiz Selected");
     }
 }