private void EditSubjectForm_Load(object sender, EventArgs e) { Subject t = CoursesRequests.GetSubject(EditId); if (t == null) { Close(); } else { nameBox.Text = t.Name; } }
public InfoSubject(Form pparentForm, int subjectId) { InitializeComponent(); parentForm = pparentForm; subject = CoursesRequests.GetSubject(subjectId); }