private void ButtonAddSubject_Click(object sender, EventArgs e) { FormSubject FormSubject = new FormSubject(); DialogResult DR = FormSubject.ShowDialog(); if (DR == DialogResult.OK) { } }