private void InDBToolStripMenuItem_Click(object sender, EventArgs e) { if (DisplayFromDB == null) { DisplayFromDB = new DisplayAllFromDB(); DisplayFromDB.MdiParent = this; DisplayFromDB.FormClosed += DisplayFromDB_FormClosed; DisplayFromDB.Show(); } else { DisplayFromDB.Activate(); } }
private void DisplayFromDB_FormClosed(object sender, FormClosedEventArgs e) { DisplayFromDB = null; }