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

            ctaef.Show();
        }
 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 { }
 }