Exemple #1
0
        public TableOverviewUI(Employee employee)
        {
            this.employee = employee;
            InitializeComponent();

            buttons.Add(btnTable1);
            buttons.Add(btnTable2);
            buttons.Add(btnTable3);
            buttons.Add(btnTable4);
            buttons.Add(btnTable5);
            buttons.Add(btnTable6);
            buttons.Add(btnTable7);
            buttons.Add(btnTable8);
            buttons.Add(btnTable9);
            buttons.Add(btnTable10);

            //initialize tables by getting them from the database
            try {
                tables = tableLogic.GetAllTables();
            } catch {
                MessageBox.Show("Problem loading tables from database. Please try again.");
            }
            SetTableColors();

            OrderStatusTimer();
        }
Exemple #2
0
 private void btnBack_Click(object sender, EventArgs e)
 {
     try
     {
         this.Hide();
         tableUI.tables = tableLogic.GetAllTables();
         tableUI.SetTableColors();
         tableUI.Show();
         this.Close();
     }
     catch
     {
         MessageBox.Show("Probleem met het laden van de database. Probeer opnieuw.");
     }
 }