Example #1
0
        public override Control Create(IExecutionContext context)
        {
            SQLOSBBConnectionProperties val = (SQLOSBBConnectionProperties)Value;

            _control = new SQLOSBBConnectionControl2(context);
            SQLOSBBConnectionControl2 control = (SQLOSBBConnectionControl2)_control;

            control.Value = val;
            return(_control);
        }
Example #2
0
 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;
 }
Example #3
0
        private void comboInstanceName_SelectedIndexChanged(object sender, EventArgs e)
        {
            SQLOSBBConnectionProperties config = Value;

            RefreshControls(config);
        }
Example #4
0
 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;
 }