Exemplo n.º 1
0
 public Datos(Loguin loguin, Label ticket, Label ClienteName, frm_Terminal t)
 {
     this.loguin      = loguin;
     this.ticket      = ticket;
     this.ClienteName = ClienteName;
     this.t           = t;
 }
Exemplo n.º 2
0
 private void frm_Terminal_Load(object sender, EventArgs e)
 {
     cs     = new Class1();
     ventas = Ventas.getInstance();
     send   = Send.GetSend();
     loguin = new Loguin();
     datos  = new Datos(loguin, lb_Ticket, Label_Cliente, this);
     CheckForIllegalCrossThreadCalls = false;
     CS = new ConexionSocket(lv_Detalle, label_Total, datos);
     if (CS.Connected)
     {
         loguin.Cargar(CS);
         while (datos.Prioridad == -1)
         {
             loguin.ShowDialog();
             Thread.Sleep(1000);
         }
         CamposNormal();
         lb_Ticket.Text = datos.N_Ticket.ToString();
         if (datos.Prioridad == 1)
         {
             btn_Ventas.Enabled    = true;
             label6.Visible        = true;
             txt_Descuento.Visible = true;
         }
     }
     else
     {
         this.Close();
     }
 }