private void CheckFormCall() { if (this.Owner != null) { if ((this.Owner is View.View.ViewSubjectForm)) { labelAddSubject.Text = "Update Subject"; subject.GetSingleSubject(comboBoxSemesterName, textBoxSubjectName, comboBoxTeacherName); subjectName = textBoxSubjectName.Text; } if (this.Owner is HomeForm) { comboBoxSemesterName.SelectedItem = null; comboBoxTeacherName.SelectedItem = null; } } }