Exemplo n.º 1
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (this.checkBox1.Checked)
     {
         this.textBox4.ReadOnly = false;
         Venta vn = new VentaTarjeta("", this.v.Codigo, this.v.Dependiente);
         vn.Lineas = v.Lineas;
         sv.DarBajaVenta(v);
         this.v = vn;
         sv.DarAltaVenta(v);
     }
     else
     {
         this.textBox4.ReadOnly = true;
         this.textBox4.Text     = "";
         Venta vn = new VentaContado(this.v.Codigo, this.v.Dependiente);
         vn.Lineas = v.Lineas;
         sv.DarBajaVenta(v);
         this.v = vn;
         sv.DarAltaVenta(v);
     }
 }