private void btnEdit_Click(object sender, System.EventArgs e) { EditServerListing dlg = new EditServerListing(); dlg.EditListing(m_selectedListing, this); dlg.Dispose(); PopulateServerList(); UpdateButtonState(); UpdateDisplay(); }