private void panel1_Click(object sender, EventArgs e) { foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(ATMDiskBankAdvice)) { form.Activate(); return; } } ATMDiskBankAdvice frm = new ATMDiskBankAdvice(); frm.Show(); frm.MdiParent = this; }
private void button18_Click(object sender, EventArgs e) { //Hide sub menu filemaintenance panelProcessSub.Visible = false; //controls foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(ATMDiskBankAdvice)) { form.Activate(); return; } } ATMDiskBankAdvice frm = new ATMDiskBankAdvice(); frm.Show(); frm.MdiParent = this; }