private void button1_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(this.textBox1.Text.Trim())) { this.textBox2.Text = cp.DeCodeStr(this.textBox1.Text.Trim()); } }
private void SetDataSourceAfterSelected() { if (!string.IsNullOrEmpty(cmbDataSource.Text) && !string.IsNullOrEmpty(txtUser.Text) && !string.IsNullOrEmpty(txtPassword.Text)) { string dataForShow = string.Format(strForFormat, this.cmbDataSource.Text, txtUser.Text, _cp.DeCodeStr(txtPassword.Text)); this.txtCurrentDataSource.Text = dataForShow; } }