Example #1
0
 private void button5_Click(object sender, EventArgs e)
 {
     buscarcliente frm = new buscarcliente();
     frm.ShowDialog();
     bool estado = frm.est();
     string descripcion = frm.desc();
     string dni = frm.dn();
     string telefono = frm.tel();
     decimal saldo = frm.sald();
     int id = frm.Id();
     if (descripcion != "" && estado == false)
     {
         textBox1.Text = telefono;
         textBox2.Text = descripcion;
         textBox3.Text = dni;
         textBox4.Text = saldo.ToString();
         label5.Text = id.ToString();
     }
 }
Example #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     buscarcliente frm = new buscarcliente();
     frm.ShowDialog();
     string descrip = frm.desc();
     textBox1.Text = descrip;
     label3.Text = frm.Id().ToString();
 }