private void Learning_FormClosing(object sender, FormClosingEventArgs e) { if (MetroMessageBox.Show(this, "정말 종료하시겠습니까?", "종료", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { foreach (Form LearningForm in this.MdiChildren) { LearningForm.Close(); } e.Cancel = false; } else { e.Cancel = true; } }
private void BtnLearning_Click(object sender, EventArgs e) { LearningForm form = new LearningForm(); InitChildForm(form, "Learning"); }