Ejemplo n.º 1
0
 private void ItemTenderGrid_CellMouseLeave(object sender, DataGridViewCellEventArgs e)
 {
     if (string.IsNullOrEmpty(BarcodeInputTextBox.Text))
     {
         BarcodeInputTextBox.Select();
     }
 }
Ejemplo n.º 2
0
 private void CheckQuantity()
 {
     if (ticketlineBindingSource.Count <= 0)
     {
         MessageBox.Show(@"Enter an item first.");
         BarcodeInputTextBox.Select();
         return;
     }
     if (!string.IsNullOrEmpty(MultiplierTextBox.Text))
     {
         var    newString = MultiplierTextBox.Text.Contains("x") ? MultiplierTextBox.Text.Replace("x", "") : MultiplierTextBox.Text;
         double quantityCount;
         if (double.TryParse(newString, out quantityCount))
         {
             var line = ticketlineBindingSource.Current as TicketLine;
             if (line != null)
             {
                 line.Quantity = quantityCount;
                 ticketlineBindingSource.ResetCurrentItem();
                 MultiplierTextBox.Clear();
                 BarcodeInputTextBox.Select();
             }
         }
     }
     CheckTotal();
 }
Ejemplo n.º 3
0
        private void SalesForm_Load(object sender, EventArgs e)
        {
            printFont   = new Font("Arial", 11f);
            gray        = Brushes.Gray;
            receiptFont = new Font("Arial", 7.5f);
            creditFont  = new Font("Arial", 7.5f);
            context     = new PosContext();

            InitAll();
            NewTicket();
            InitItemTenderGrid();
            //--set focus to barcode
            Activate();
            BarcodeInputTextBox.Select();
        }
Ejemplo n.º 4
0
 private void ClearButton_Click(object sender, EventArgs e)
 {
     BarcodeInputTextBox.Clear();
     BarcodeInputTextBox.Select();
 }