Exemple #1
0
        private void btnRevenue_Click(object sender, EventArgs e)
        {
            panelLoadData.Controls.Clear();
            ListRevenue f = new ListRevenue();

            panelLoadData.Controls.Add(f);
            f.BringToFront();
        }
Exemple #2
0
        private void buttonRevenue_Click(object sender, EventArgs e)
        {
            panelMove.Height        = buttonRevenue.Height;
            panelMove.Top           = buttonRevenue.Top;
            buttonRevenue.BackColor = Color.FromArgb(136, 232, 242);
            //LoadData lên form
            ListRevenue lr = new ListRevenue();

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