private void bRestet_Click(object sender, EventArgs e) { MWin.TicketToCheck = ""; MWin.TicketOK = 0; MWin.Parser_Ticket(opciones.Srv_User, eBar.Text, 0); eBar.Text = ""; if (MWin.TicketOK == 1) { MWin.Validate_Ticket(); Close(); } }
private void eBar_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == '\r') { lCODE.Text = ""; lVal.Text = ""; lTime.Text = ""; lTicket.Text = ""; lSec.Text = ""; lOKT.Text = ""; MWin.TicketToCheck = ""; MWin.TicketOK = 0; MWin.Parser_Ticket(opciones.Srv_User, eBar.Text, 1); eBar.Text = ""; if (MWin.TicketOK == 1) { MWin.Opcions.Verificar_Ticket = 0; try { MWin.Opcions.Verificar_Ticket = int.Parse(MWin.LastTicket.Substring(1, 11)); } catch { } Ticket = MWin.LastTicket; MWin.Srv_Verificar_Ticket(MWin.Opcions.Verificar_Ticket, 0); } } }