Пример #1
0
        private void btnServerAdd_Click(object sender, EventArgs e)
        {
            ServerEditor editor = new ServerEditor();

            editor.ShowDialog();
            if (editor.DialogResult == DialogResult.OK)
            {
                RefreshUi();
            }
        }
Пример #2
0
        private void btnServerEdit_Click(object sender, EventArgs e)
        {
            ServerConfig selectedConfig = (ServerConfig)listboxServers.SelectedItem;
            ServerEditor editor         = new ServerEditor(selectedConfig);

            editor.ShowDialog();
            if (editor.DialogResult == DialogResult.OK)
            {
                RefreshUi();
            }
        }