private void btngetdatao_Click(object sender, EventArgs e) { frmNewOrder or = new frmNewOrder(); if (Application.OpenForms.OfType <frmNewOrder>().Any()) { Application.OpenForms.OfType <frmNewOrder>().First().Close(); or.Show(); } else { or.Show(); } frmOrderRecord orc = new frmOrderRecord(); if (Application.OpenForms.OfType <frmOrderRecord>().Any()) { Application.OpenForms.OfType <frmOrderRecord>().First().Close(); orc.Show(); } else { orc.Show(); } }
private void newProjectToolStripMenuItem1_Click(object sender, EventArgs e) { frmNewOrder fnp = new frmNewOrder(); fnp.Show(); }