private void btnSearchSubject_Click(object sender, EventArgs e) { JSubjectForm subject = new JSubjectForm(); if (subject.ShowDialog() == DialogResult.OK) { txtSubjectCode.Text = ((JCustomTreeNode)subject.SelectedItem).Code.ToString(); txtSubjectName.Text = ((JCustomTreeNode)subject.SelectedItem).ToString(); } }
public void ShowForm() { JSubjectForm p = new JSubjectForm(); p.ShowDialog(); }
public void Show() { JSubjectForm SF = new JSubjectForm(); SF.ShowDialog(); }