Beispiel #1
0
        private void btnAllFoodCategory_Click(object sender, EventArgs e)
        {
            AllFoodCategory afc = new AllFoodCategory();

            MainControlClass.showControl(afc, panelMainContainer);
            btnAllFoodCategory.ForeColor = Color.Red;
        }
Beispiel #2
0
        private void btnSetting_Click(object sender, EventArgs e)
        {
            SettingsUserControl set = new SettingsUserControl();

            MainControlClass.showControl(set, panelMainContainer);
            // btnAllFoodCategory.ForeColor = Color.Red;
        }
Beispiel #3
0
        private void FinalDashboard_Load(object sender, EventArgs e)
        {
            OrderUserControl afc = new OrderUserControl();

            MainControlClass.showControl(afc, panelMainContainer);
            lblRName.Text = Properties.Settings.Default.Name;
        }
Beispiel #4
0
        private void btnNewFoodItem_Click(object sender, EventArgs e)
        {
            NewFoodItem nf = new NewFoodItem();

            MainControlClass.showControl(nf, panelMainContainer);
            buttonNewFoodItem.ForeColor  = Color.Red;
            btnAllFoodCategory.ForeColor = Color.White;
        }
Beispiel #5
0
        private void btnSales_Click(object sender, EventArgs e)
        {
            hideSubMenu();
            sidePanel.Height = btnSales.Height;
            sidePanel.Top    = btnSales.Top;
            SalesReport sr = new SalesReport();

            MainControlClass.showControl(sr, panelMainContainer);
        }
Beispiel #6
0
        private void btnStaff_Click(object sender, EventArgs e)
        {
            hideSubMenu();
            sidePanel.Height = btnStaff.Height;
            sidePanel.Top    = btnStaff.Top;
            WaiterUC waf = new WaiterUC();

            MainControlClass.showControl(waf, panelMainContainer);
        }
Beispiel #7
0
        private void btnTable_Click(object sender, EventArgs e)
        {
            hideSubMenu();
            panelMainContainer.BringToFront();
            sidePanel.Height = btnTable.Height;
            sidePanel.Top    = btnTable.Top;
            Table sr = new Table();

            MainControlClass.showControl(sr, panelMainContainer);
        }
Beispiel #8
0
        private void btnOrder_Click(object sender, EventArgs e)
        {
            hideSubMenu();
            sidePanel.Height = btnOrder.Height;
            sidePanel.Top    = btnOrder.Top;
            OrderUserControl afc = new OrderUserControl();

            MainControlClass.showControl(afc, panelMainContainer);
            btnAllFoodCategory.ForeColor = Color.Red;
        }
Beispiel #9
0
        private void btnOngoingOrder_Click(object sender, EventArgs e)
        {
            OngoingOrder afc = new OngoingOrder();

            MainControlClass.showControl(afc, panelMainContainer);
        }
Beispiel #10
0
        private void OrderUserControl_Load(object sender, EventArgs e)
        {
            NewOrder afc = new NewOrder();

            MainControlClass.showControl(afc, panelMainContainer);
        }