Esempio n. 1
0
        private void buttonProperties_Click(object sender, EventArgs e)
        {
            ConnectionStringSettings setting = Configuration.Configurator.GetDBConnSetting(
                dataGridViewConnStrs.SelectedCells[0].OwningRow.Cells[0].Value.ToString());

            ConnProps connProps = new ConnProps(setting);

            if (connProps.ShowDialog() == DialogResult.OK)
            {
                Configuration.Configurator.RemoveDBConnString(setting.Name);

                ConnectionStringSettings newSetting = new ConnectionStringSettings(
                    connProps.ConnStrSettings.Name, connProps.ConnStrSettings.ConnectionString,
                    connProps.ConnStrSettings.ProviderName);

                Configuration.Configurator.AddDBConnString(newSetting);
            }
        }
Esempio n. 2
0
        private void buttonProperties_Click(object sender, EventArgs e)
        {
            ConnectionStringSettings setting = Configuration.Configurator.GetDBConnSetting(
                dataGridViewConnStrs.SelectedCells[0].OwningRow.Cells[0].Value.ToString());

            ConnProps connProps = new ConnProps(setting);

            if (connProps.ShowDialog() == DialogResult.OK)
            {
                Configuration.Configurator.RemoveDBConnString(setting.Name);

                ConnectionStringSettings newSetting = new ConnectionStringSettings(
                    connProps.ConnStrSettings.Name, connProps.ConnStrSettings.ConnectionString,
                    connProps.ConnStrSettings.ProviderName);

                Configuration.Configurator.AddDBConnString(newSetting);
            }
        }