private void FillPropertiesFromConnectionString()
 {
     _db.ConnectionString = this.ConnectionString;
     //TODO
     this.txtServerName.Text   = _db.GetPropertyValue("ServerName").ToString();
     this.txtDatabaseName.Text = _db.GetPropertyValue("DatabaseName").ToString();
     this.txtUsername.Text     = _db.GetPropertyValue("Username").ToString();
     this.txtPassword.Text     = _db.GetPropertyValue("Password").ToString();
     this.txtPortNumber.Text   = _db.GetPropertyValue("PortNumber").ToString();
     //END TODO
 }
Exemple #2
0
 private void FillPropertiesFromConnectionString()
 {
     _db.ConnectionString    = this.ConnectionString;
     this.txtDataSource.Text = _db.GetPropertyValue("DataSource").ToString();
     this.txtUserId.Text     = _db.GetPropertyValue("Username").ToString();
     this.txtPassword.Text   = _db.GetPropertyValue("Password").ToString();
     this.chkUseIntegratedSecurity.Checked = (bool)_db.GetPropertyValue("UseIntegratedSecurity");
 }
Exemple #3
0
 private void FillPropertiesFromConnectionString()
 {
     _db.ConnectionString      = this.ConnectionString;
     this.txtDatabaseFile.Text = _db.GetPropertyValue("DatabasePath").ToString();
     //this.txtDatabaseName.Text = _db.GetPropertyValue("DatabaseName").ToString();
     this.txtDatabaseName.Text = string.Empty;
     this.txtUsername.Text     = _db.GetPropertyValue("Username").ToString();
     this.txtPassword.Text     = _db.GetPropertyValue("Password").ToString();
     if (_db.GetPropertyValue("DatabaseKey") != null)
     {
         this.txtDatabaseKey.Text = _db.GetPropertyValue("DatabaseKey").ToString();
     }
     else
     {
         this.txtDatabaseKey.Text = string.Empty;
     }
 }
Exemple #4
0
        private void FillPropertiesFromConnectionString()
        {
            int numValue = 0;

            _db.ConnectionString = this.ConnectionString;
            //TODO: Chamge (DONE)
            this.txtDataSource.Text      = _db.GetPropertyValue("DatabasePath").ToString();
            this.txtPassword.Text        = _db.GetPropertyValue("DatabasePassword").ToString();
            this.chkEncryptionOn.Checked = (bool)_db.GetPropertyValue("EncryptionOn");
            this.cboEncryptionMode.Text  = _db.GetPropertyValue("EncryptionMode").ToString();
            numValue = (int)_db.GetPropertyValue("MaxDatabaseSize");
            if (numValue != (int)enSQLCE40Defaults.MaxDatabaseSize)
            {
                this.txtMaxDatabaseSize.Text = numValue.ToString();
            }
            else
            {
                this.txtMaxDatabaseSize.Text = string.Empty;
            }
            numValue = (int)_db.GetPropertyValue("MaxBufferSize");
            if (numValue != (int)enSQLCE40Defaults.MaxBufferSize)
            {
                this.txtMaxBufferSize.Text = numValue.ToString();
            }
            else
            {
                this.txtMaxBufferSize.Text = string.Empty;
            }
            numValue = (int)_db.GetPropertyValue("MaxTempFileSize");
            if (numValue != (int)enSQLCE40Defaults.MaxTempFileSize)
            {
                this.txtMaxTempFileSize.Text = numValue.ToString();
            }
            else
            {
                this.txtMaxTempFileSize.Text = string.Empty;
            }
            //END TODO:
        }
 private void FillPropertiesFromConnectionString()
 {
     _db.ConnectionString           = this.ConnectionString;
     this.txtDatabaseFile.Text      = _db.GetPropertyValue("DatabasePath").ToString();
     this.txtDataSource.Text        = _db.GetPropertyValue("DataSourceName").ToString();
     this.txtServerName.Text        = _db.GetPropertyValue("ServerName").ToString();
     this.txtDatabaseName.Text      = _db.GetPropertyValue("DatabaseName").ToString();
     this.txtUsername.Text          = _db.GetPropertyValue("Username").ToString();
     this.txtPassword.Text          = _db.GetPropertyValue("Password").ToString();
     this.txtDatabaseKey.Text       = _db.GetPropertyValue("DatabaseKey").ToString();
     this.txtEncryption.Text        = _db.GetPropertyValue("Encryption").ToString();
     this.txtEncryptedPassword.Text = _db.GetPropertyValue("EncryptedPassword").ToString();
 }