示例#1
0
        private void panelLoadData_Paint(object sender, PaintEventArgs e)
        {
            ListHome fh = new ListHome();

            this.panelLoadData.Controls.Add(fh);
            fh.BringToFront();
        }
示例#2
0
        private void buttonHome_Click(object sender, EventArgs e)
        {
            panelMove.Height     = buttonHome.Height;
            panelMove.Top        = buttonHome.Top;
            buttonHome.BackColor = Color.FromArgb(136, 232, 242);
            //LoadData lên form
            ListHome fh = new ListHome();

            this.panelLoadData.Controls.Add(fh);
            fh.BringToFront();
            //button trả về màu cũ khi qua button khác
            buttonFood.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);
            buttonRevenue.BackColor = Color.FromArgb(5, 199, 242);
        }