Exemple #1
0
        void DisplayOrders()
        {
            fetchedOrders = OrdersDAO.GetOrders();
            ordersListView.ItemsSource = fetchedOrders;

            if (fetchedOrders.Count != 0)
            {
                orderToShow = fetchedOrders[0];
            }
            else
            {
                orderToShow = new Order()
                {
                    Name = "mac dinh",
                };
            }

            DisplayOrderToShow();
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     orders = OrdersDAO.GetOrders();
     DisplayRevenueByCategory();
     DisplayRevenueByMonth();
 }