예제 #1
0
        private void ButtonToChooseTheoryAndExercisesForm_Click(object sender, EventArgs e)
        {
            this.Close();
            ChooseTheoryAndExercisesForm ctaef = new ChooseTheoryAndExercisesForm(curUser, selectedTopic);

            ctaef.Show();
        }
예제 #2
0
 private void buttonBack_Click(object sender, EventArgs e)
 {
     try
     {
         ChooseTheoryAndExercisesForm ctaef = new ChooseTheoryAndExercisesForm(curUser, selectedTopic);
         ctaef.Show();
         this.Close();
     }
     catch { }
 }
예제 #3
0
 private void TopicsList_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (Directory.Exists(Directory.GetCurrentDirectory() + $@"\Resources\Темы\{TopicsList.SelectedItem.ToString()}"))
         {
             this.Close();
             ChooseTheoryAndExercisesForm ctaef = new ChooseTheoryAndExercisesForm(curUser, TopicsList.SelectedItem.ToString());
             ctaef.Show();
         }
         else
         {
             MessageBox.Show($"Отсутствует папка \"{TopicsList.SelectedItem.ToString()}\" по адресу:\n{Directory.GetCurrentDirectory()}\\Resources\\Темы\\");
         }
     }
     catch { }
 }