private void showWindowsButton_Click(object sender, EventArgs e) { if (m_winEdit == null) { m_winEdit = new WindowEdit(m_config); m_winEdit.FormClosing += windowsEditDone; m_winEdit.Show(); } else { m_winEdit.Activate(); } }
private void windowsEditDone(object sender, FormClosingEventArgs e) { m_winEdit = null; }