Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 private void NextBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     SalesView.GotoNextSalesStep(Key.Right);
 }