private void ShowServerForm() { if (serverForm == null) { serverForm = new ServerListForm(manager); serverForm.FormClosed += ServerForm_FormClosed; serverForm.Show(); } else { serverForm.Activate(); } }
private void ServerForm_FormClosed(object sender, FormClosedEventArgs e) { serverForm = null; }