Example #1
0
        private void buttonFoodHome_Click(object sender, EventArgs e)
        {
            panelLoadData.Controls.Clear();
            ListFood f = new ListFood();

            panelLoadData.Controls.Add(f);
            f.BringToFront();
        }
Example #2
0
        private void buttonFood_Click(object sender, EventArgs e)
        {
            //PanelLeft hiển thị theo từng tab
            panelMove.Height     = buttonFood.Height;
            panelMove.Top        = buttonFood.Top;
            buttonFood.BackColor = Color.FromArgb(136, 232, 242);
            //LoadData lên form
            ListFood f = new ListFood();

            this.panelLoadData.Controls.Add(f);
            f.BringToFront();
            //button trả về màu cũ khi qua button khác
            buttonHome.BackColor  = Color.FromArgb(5, 199, 242);
            buttonTable.BackColor = Color.FromArgb(5, 199, 242);

            buttonBill.BackColor = Color.FromArgb(5, 199, 242);
        }