Beispiel #1
0
        void buttonTouchInputOptions3_Click(object sender, EventHandlers.ButtonTouchInputClickArgs args)
        {
            TextBlockButton button = buttonTouchInputOptions3.Buttons[args.ButtonIndex];

            UpdateTicketOptions(button);
            UpdateReceiptTapeItem();
            OrderEntryCommands.UpdateInOrderCommands();
        }
        public void RemoveSelectedItemFromReceiptTape()
        {
            // Remove all child items
            List <TicketItemTemplate> childTicketItems =
                (from TicketItemTemplate item in Items
                 where item.TicketItem.ParentTicketItemId == SelectedItem.TicketItem.PrimaryKey.Id
                 select item).ToList();

            foreach (TicketItemTemplate childTicketItem in childTicketItems)
            {
                Items.Remove(childTicketItem);
            }
            // Remove the item from the receipt tape
            Items.Remove(SelectedItem);
            OrderEntryControl.SetOrderAmountText(TicketSubTotal.ToString("C2"));
            SessionManager.ResetItemEntry();

            OrderEntryControl.InitializeTicket();
            OrderEntryCommands.UpdateInOrderCommands();
            ClearSelection();
        }