Beispiel #1
0
        private void addButton_Click(object sender, EventArgs e)
        {
            DialogResult result = new ConnectionEditForm().ShowDialog();

            if (result == DialogResult.OK)
            {
                ReloadConnections();
            }
        }
Beispiel #2
0
        private void editButton_Click(object sender, EventArgs e)
        {
            DialogResult result = new ConnectionEditForm(selectedConnection).ShowDialog();

            if (result == DialogResult.OK)
            {
                ReloadConnections();
            }
            ConnectionSelected?.Invoke(selectedConnection);
        }