private void BtnMajorSearch_Click(object sender, EventArgs e) { MajorListForm frm = new MajorListForm(); if (frm.ShowDialog() == DialogResult.OK) { this.txtMajor.Text = frm.MajorName; } }
private void 학과리스트ToolStripMenuItem_Click(object sender, EventArgs e) { bool bCheck = FormOverFlowCheck("MajorListForm"); if (!bCheck) { MaterialMessageBox.Show("이미열려있는 화면입니다.", "경고", MessageBoxButtons.OK); return; } MajorListForm frm = new MajorListForm(); frm.Show(); }