Exemplo n.º 1
0
        private void RefreshListBoxWithOrders()
        {
            TextBox.Clear();
            ListBox.Items.Clear();

            SetActiveOrdersList();

            foreach (var item in currentOrdersList)
            {
                ListBox.Items.Add($"Id: {item.OrderId} Name: {item.Name}");
            }

            activeCategory = ActiveCategory.ORDERS;
        }
Exemplo n.º 2
0
        private void RefreshListBoxWithDishes()
        {
            TextBox.Clear();
            ListBox.Items.Clear();

            SetActiveDishesList();

            foreach (var item in currentDishesList)
            {
                ListBox.Items.Add($"Id: {item.Id} Name: {item.Name}");
            }

            activeCategory = ActiveCategory.DISHES;
        }