Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(this.textBox1.Text.Trim()))
     {
         this.textBox2.Text = cp.DeCodeStr(this.textBox1.Text.Trim());
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }