Example #1
0
        private void NotifyParent(bool sameButton)
        {
            Item item = SessionManager.ActiveItem;

            if ((SessionManager.ActiveCategory == null) || (item == null))
            {
                return;
            }

            // Add a new item
            OrderEntryControl.ClearItemOptions();
            SessionManager.ActiveItem = item;
            OrderEntryControl.AddItemToOrder(item);
            SessionManager.ActiveItem = item;
            OrderEntryControl.UpdateDisplayedOrderAmount();
            OrderEntryControl.SetItemOptions();
        }
Example #2
0
        private void UpdateItems()
        {
            // Clear the Item Options
            OrderEntryControl.ClearItemOptions();

            if (SessionManager.ActiveItem == null)
            {
                OrderEntryControl.ClearReceiptTape();
            }

            SessionManager.ActiveCategory = ActiveCategory;

            // Move back to OrderEnteryControl, instead, call an event handler here
            if (SessionManager.ActiveCategory != null)
            {
                OrderEntryControl.SetCategory();
            }
        }