private void dataDisplayToolStripMenuItem_Click(object sender, EventArgs e) { if (DD == null) { DD = new DataDisplay(); DD.FormClosed += DD_FormClosed; DD.Show(); } else { DD.Activate(); } }
private void DD_FormClosed(object sender, FormClosedEventArgs e) { DD = null; }