private string BuildConnectionString() { string connStr = string.Empty; _db.SetPropertyValue("DataSource", this.txtDataSource.Text); _db.SetPropertyValue("Username", this.txtUserId.Text); _db.SetPropertyValue("Password", this.txtPassword.Text); _db.SetPropertyValue("UseIntegratedSecurity", this.chkUseIntegratedSecurity.Checked); connStr = _db.ConnectionString; SaveFormFields(); //save field values so that Accept processing can determine if there are differences between connection string and the property values on the form. return(connStr); }
private string BuildConnectionString() { string connStr = string.Empty; _db.SetPropertyValue("DatabasePath", this.txtDatabaseFile.Text); //_db.SetPropertyValue("DatabaseName", this.txtDatabaseName.Text); _db.SetPropertyValue("DatabaseName", string.Empty); _db.SetPropertyValue("Username", this.txtUsername.Text); _db.SetPropertyValue("Password", this.txtPassword.Text); _db.SetPropertyValue("DatabaseKey", this.txtDatabaseKey.Text); connStr = _db.ConnectionString; SaveFormFields(); //save field values so that Accept processing can determine if there are differences between connection string and the property values on the form. return(connStr); }
private string BuildConnectionString() { string connStr = string.Empty; //TODO _db.SetPropertyValue("ServerName", this.txtServerName.Text); _db.SetPropertyValue("DatabaseName", this.txtDatabaseName.Text); _db.SetPropertyValue("Username", this.txtUsername.Text); _db.SetPropertyValue("Password", this.txtPassword.Text); _db.SetPropertyValue("PortNumber", this.txtPortNumber.Text); //END TODO connStr = _db.ConnectionString; SaveFormFields(); //save field values so that Accept processing can determine if there are differences between connection string and the property values on the form. return(connStr); }
private string BuildConnectionString() { string connStr = string.Empty; //TODO: Change this (Changed) _db.SetPropertyValue("DatabasePath", this.txtDataSource.Text); _db.SetPropertyValue("DatabasePassword", this.txtPassword.Text); _db.SetPropertyValue("EncryptionOn", this.chkEncryptionOn.Checked); _db.SetPropertyValue("EncryptionMode", (SQLCE40EncryptionMode)Enum.Parse(typeof(SQLCE40EncryptionMode), this.cboEncryptionMode.Text)); _db.SetPropertyValue("MaxDatabaseSize", PFTextProcessor.ConvertStringToInt(this.txtMaxDatabaseSize.Text, (int)enSQLCE40Defaults.MaxDatabaseSize)); _db.SetPropertyValue("MaxBufferSize", PFTextProcessor.ConvertStringToInt(this.txtMaxBufferSize.Text, (int)enSQLCE40Defaults.MaxBufferSize)); _db.SetPropertyValue("MaxTempFileSize", PFTextProcessor.ConvertStringToInt(this.txtMaxTempFileSize.Text, (int)enSQLCE40Defaults.MaxTempFileSize)); //END TODO connStr = _db.ConnectionString; SaveFormFields(); //save field values so that Accept processing can determine if there are differences between connection string and the property values on the form. return(connStr); }