private void cmdAddCon_Click(object sender, EventArgs e) { frmAddConnection frmAddCon = new frmAddConnection(); frmAddCon.ShowDialog(); frmAddCon.Close(); frmAddCon.Dispose(); RefreshConnection(); }
private void cmdModifyCon_Click(object sender, EventArgs e) { if (lstServerce.SelectedItems.Count == 1) { frmAddConnection mfrm = new frmAddConnection(lstServerce.SelectedItem.ToString()); mfrm.ShowDialog(); mfrm.Close(); mfrm.Dispose(); RefreshConnection(); } }