public StatisticsController() : base("Statistics.exe.config")
    {
        List <Invoice> invoices = RestaurantServer.GetListOfInvoices();

        TotalInvoices   = 0;
        ProductQuantity = new ConcurrentDictionary <uint, double>();
        AmountByDay     = new ConcurrentDictionary <string, double>();
        LoadStatistics(invoices);
    }
예제 #2
0
 public bool DoPayment(uint tableId)
 {
     return(RestaurantServer.DoPayment(tableId));
 }
예제 #3
0
 public void AddOrder(uint tableId, uint productId, uint quantity)
 {
     RestaurantServer.AddOrder(tableId, productId, quantity);
 }