public override Control Create(IExecutionContext context) { SQLOSBBConnectionProperties val = (SQLOSBBConnectionProperties)Value; _control = new SQLOSBBConnectionControl2(context); SQLOSBBConnectionControl2 control = (SQLOSBBConnectionControl2)_control; control.Value = val; return(_control); }
private void RefreshControls(SQLOSBBConnectionProperties config) { textServerName.Text = config.InstanceName; comboDBName.SelectedItem = config.DBName; textPassword.Text = config.Password; textUserName.Text = config.UserName; checkCreateBackup.Checked = config.CreateBackup; textBackupPath.Text = config.BackupFilePath; textBackupPath.Enabled = config.CreateBackup; buttonBrowse.Enabled = config.CreateBackup; }
private void comboInstanceName_SelectedIndexChanged(object sender, EventArgs e) { SQLOSBBConnectionProperties config = Value; RefreshControls(config); }