Ejemplo n.º 1
0
 /// <summary>
 /// This method calls the methodes ServiceBtnUpdate and UpdateTableStatus every 10 seconds.
 /// </summary>
 /// <param name="Sender"></param>
 /// <param name="e"></param>
 private void Timer_Tick(object Sender, EventArgs e)
 {
     UpdateTableStatus();
     ServiceBtnUpdate();
     ActiveOrderlist        = Service.GetActiveOrderList();
     ActiveOrderProductList = Service.GetActiveOrderProductList();
 }
Ejemplo n.º 2
0
 public TableOverview(Employee employee) // Employee
 {
     InitializeComponent();
     this.Employee = employee;
     Service       = new TableOverview_Service();
     BtnListTable  = new Button[10] {
         btnTable1, btnTable2, btnTable3, btnTable4, btnTable5, btnTable6, btnTable7, btnTable8, btnTable9, btnTable10
     };
     BtnListBar = new Button[10] {
         btnBar1, btnBar2, btnBar3, btnBar4, btnBar5, btnBar6, btnBar7, btnBar8, btnBar9, btnBar10
     };
     BtnListKitchen = new Button[10] {
         btnKitchen1, btnKitchen2, btnKitchen3, btnKitchen4, btnKitchen5, btnKitchen6, btnKitchen7, btnKitchen8, btnKitchen9, btnKitchen10
     };
     ButtonImages = new Dictionary <Images, Image>();
     LoadImages();
     TableList              = Service.GetTableList();
     ActiveOrderlist        = Service.GetActiveOrderList();
     ActiveOrderProductList = Service.GetActiveOrderProductList();
     ProductList            = Service.GetProductList();
     UpdateTableStatus();
     ServiceBtnUpdate();
     InfoEmployee();
     InitializeTimer();
 }