Exemple #1
0
 private void buttonOK_Click(object sender, EventArgs e)
 {
     if (CoursesRequests.EditTopic(EditId, nameBox.Text, CourseId) == null)
     {
         MessageBox.Show("Тема не добавлена", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Close();
     }
 }