Esempio n. 1
0
        private void btnAddSever_Click(object sender, EventArgs e)
        {
            DbServerSettings serverSettings = new DbServerSettings(null);
            DialogResult dialogResult = serverSettings.ShowDialog();

            if (dialogResult != DialogResult.OK) return;

            Project.AddServer(serverSettings.DatabaseServer);
            BindAvailableServerList();
        }
Esempio n. 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            DatabaseServer selectedServer = lstAvaialableServers.SelectedItem as DatabaseServer;
            DbServerSettings serverSettings = new DbServerSettings(selectedServer);
            DialogResult dialogResult = serverSettings.ShowDialog();

            BindAvailableServerList();
        }