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

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

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