private void SearchBox_PreviewKeyDown_1(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Delete)
            {
                DeleteTransactionEntry();
            }

            if (SearchListCtl.Items.Count == 1)
            {
                SearchListCtl.SelectedIndex = 0;
            }

            if (e.Key == Key.Enter)
            {
                //select the item
                LocalProcesItem(SearchListCtl.SelectedItem);


                MoveToNextControl(ItemEditor);
            }
            if (pkey == Key.Enter && e.Key == Key.Enter)
            {
                SalesView.GotoNextSalesStep(e.Key);
            }

            pkey = e.Key;
        }
 private void NewTransaction(object sender, RoutedEventArgs e)
 {
     SalesVM.NewTransaction();
     if (SalesVM.ApplicationMode == ApplicationMode.Ticket)
     {
         SalesView.HideTransaction();
         SalesView.ShowReceipt();
         SalesView.UpdateLayout();
         PrintBtn_Click_1(sender, null);
         SalesView.HideReceipt();
         SalesView.ShowTransaction();
     }
     //save transaction
     // SalesPadSalesView.CreateNewTransaction<TransactionBase>();
 }
 private void NextBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     SalesView.GotoNextSalesStep(Key.Right);
 }
 private void BackBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     SalesView.GotoPreviousSalesStep();
 }
 private void NextEntry_Click(object sender, RoutedEventArgs e)
 {
     SalesView.pkey = Key.Down;
     SalesView.GoToNextTransactionEntry();
 }
Exemple #6
0
 private void NextEntry_Click(object sender, RoutedEventArgs e)
 {
     SalesView.pkey   = Key.Down;
     SalesView.padPos = SalesRegion.SalesView.PadPosition.Middle;
     SalesView.GoToNextTransactionEntry();
 }