private void MunuPrintDoc_Click(object sender, EventArgs e) { bool IsOpen = false; foreach (Form f in Application.OpenForms) { if (f.Text == "ใบแจ้งซ่อม") { IsOpen = true; f.Focus(); break; } } if (IsOpen == false) { CloseAllChildForm(); RpFixAll f = new RpFixAll(); f.MdiParent = this; f.Dock = DockStyle.Fill; f.Show(); } }
private void MenuAdmin_Click(object sender, EventArgs e) { RpFixAll f = new RpFixAll(); f.Show(); }