private void EditToolStripMenuItem_Click(object sender, EventArgs e) { if (_ProfileEditorForm == null) { _ProfileEditorForm = new ProfileEditorForm(); _ProfileEditorForm.FormClosed += _ProfileEditorForm_FormClosed; _ProfileEditorForm.Show(); } else { _ProfileEditorForm.Focus(); } }
private void _ProfileEditorForm_FormClosed(object sender, FormClosedEventArgs e) { _ProfileEditorForm = null; }