private void EditTopicForm_Load(object sender, EventArgs e) { Topic t = CoursesRequests.GetTopic(EditId); if (t == null) { Close(); } else { nameBox.Text = t.Name; } }