private void ApplicationListToolStripMenuItem_Click(object sender, EventArgs e) { if(_applicationListForm == null) { var form = new ApplicationListForm(_controller) {MdiParent = this}; form.FormClosed += ApplicationList_FormClosed; form.Show(); _applicationListForm = form; } else { _applicationListForm.Activate(); } }
private void ApplicationList_FormClosed(object sender, FormClosedEventArgs e) { _applicationListForm = null; }