Beispiel #1
0
 private void TablesButton_Click(object sender, EventArgs e)
 {
     show_billingPanel = false;
     show_ordersPanel  = false;
     TablesButton.Hide();
     OrdersButton.Hide();
     OrderNrLabel.Hide();
     TableLabel.Hide();
     UpdateTableButtons();
     MainPanel.BringToFront();
 }
Beispiel #2
0
        public AppForm(TblEmployees loggedEmployee)
        {
            currentEmployee = loggedEmployee;

            InitializeComponent();
            MainPanel.BringToFront();
            MenuBarPanel.BringToFront();

            TablesButton.Hide();
            TableLabel.Hide();
            OrdersButton.Hide();
            OrderNrLabel.Hide();

            table_buttons.Add(Table1Button);
            table_buttons.Add(Table2Button);
            table_buttons.Add(Table3Button);
            table_buttons.Add(Table4Button);
            table_buttons.Add(Table5Button);
            table_buttons.Add(Table6Button);
            table_buttons.Add(Table7Button);
            table_buttons.Add(Table8Button);
            table_buttons.Add(Table9Button);
            table_buttons.Add(BarButton);
            UpdateTableButtons();
            for (int i = 1; i < 31; i++)
            {
                guest_count_list.Add(i);
            }
            GuestCountListBox.DataSource    = guest_count_list;
            OrdersListBox.DataSource        = open_orders_binding_list;
            OrderItemsListBox.DataSource    = order_items_binding_list;
            OrderItemsListBox.DisplayMember = "Description";
            OrdersListBox.DisplayMember     = "Table";
            CreateProductsTabbedPanel();
            AddItemsToProductsTabbedPanel();
        }