private void importJToolStripMenuItem_Click(object sender, EventArgs e) { if (CheckState(db_connection)) { frmAccptanceTableImport frm = new frmAccptanceTableImport(db_connection, usr); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Show(); } }
private void OpenAcceptanceTable2() { bool open = true; foreach (Form f in this.MdiChildren) { if (f.Name == "frmAccptanceTableImport") { f.MdiParent = this; f.Show(); f.WindowState = FormWindowState.Maximized; open = false; } } if (open) { frmAccptanceTableImport fATable = new frmAccptanceTableImport(db_connection, usr); fATable.MdiParent = this; fATable.Show(); } }