Example #1
0
        private void btnStaff_Click(object sender, EventArgs e)
        {
            ListStaff f = new ListStaff();

            panelLoadData.Controls.Add(f);
            f.BringToFront();
        }
Example #2
0
        private void buttonStaff_Click(object sender, EventArgs e)
        {
            //LoadData lên form
            ListStaff f = new ListStaff();

            this.panelLoadData.Controls.Add(f);
            f.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);
            buttonBill.BackColor  = Color.FromArgb(5, 199, 242);
        }