Ejemplo n.º 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);
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
        private void comboInstanceName_SelectedIndexChanged(object sender, EventArgs e)
        {
            SQLOSBBConnectionProperties config = Value;

            RefreshControls(config);
        }
Ejemplo n.º 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;
 }