Пример #1
0
        public OrdersInKitchenWindow()
        {
            InitializeComponent();

            Instance    = this;
            kitchenlist = MyStorage.ReadXML <ObservableCollection <Order> >("ordersInProcessing.xml");
            if (kitchenlist == null)
            {
                kitchenlist = new ObservableCollection <Order>();
            }
        }
Пример #2
0
        public TakeOrdersWindow()
        {
            InitializeComponent();

            Instance = this;

            ordersInProcessingList = MyStorage.ReadXML <ObservableCollection <Order> >("ordersInProcessing.xml");

            if (ordersInProcessingList == null)
            {
                ordersInProcessingList = new ObservableCollection <Order>();
            }

            //extrafoods = new ObservableCollection<OrderedFood>();
        }
Пример #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            categories          = MyStorage.GetEmbeddedXML <ObservableCollection <Category> >("Data.foods.xml");
            ordersCompletedList = MyStorage.ReadXML <ObservableCollection <Order> >("ordersCompleted.xml");

            if (ordersCompletedList == null)
            {
                ordersCompletedList = new ObservableCollection <Order>();
            }

            tables = new ObservableCollection <string> {
                "Table01", "Table02", "Table03", "Table04", "Table05"
            };

            TakeOrdersWindow takeOrdersWindow = new TakeOrdersWindow();

            takeOrdersWindow.Show();

            OrdersInKitchenWindow ordersInKitchenWindow = new OrdersInKitchenWindow();

            ordersInKitchenWindow.Show();
        }