private void addButton_Click(object sender, EventArgs e) { DialogResult result = new ConnectionEditForm().ShowDialog(); if (result == DialogResult.OK) { ReloadConnections(); } }
private void editButton_Click(object sender, EventArgs e) { DialogResult result = new ConnectionEditForm(selectedConnection).ShowDialog(); if (result == DialogResult.OK) { ReloadConnections(); } ConnectionSelected?.Invoke(selectedConnection); }