private void btnCNBH_CLick(object sender, EventArgs e)
        {
            btnCNBH.FlatAppearance.BorderColor   = Color.FromArgb(254, 215, 0);
            btnCNHDNH.FlatAppearance.BorderColor = Color.FromArgb(42, 39, 41);
            btnCNSP.FlatAppearance.BorderColor   = Color.FromArgb(42, 39, 41);
            btnCNNCC.FlatAppearance.BorderColor  = Color.FromArgb(42, 39, 41);
            btnCNKH.FlatAppearance.BorderColor   = Color.FromArgb(42, 39, 41);
            btnCNNV.FlatAppearance.BorderColor   = Color.FromArgb(42, 39, 41);

            if (isCNBH)
            {
                tabControl.SelectedTab = tabQLBH;
            }
            else
            {
                frmQLBH frmQLBH = new frmQLBH();
                frmQLBH.BringToFront();
                frmQLBH.TopLevel = false;
                frmQLBH.Visible  = true;
                frmQLBH.Dock     = DockStyle.Fill;

                tabQLBH.Controls.Add(frmQLBH);
                tabQLBH.Text = "Quản lý bán hàng";
                tabControl.TabPages.Add(tabQLBH);
                tabControl.SelectedTab = tabQLBH;
                isCNBH = true;
            }
        }
Example #2
0
        private void button9_Click(object sender, EventArgs e)
        {
            frmQLBH frmQLHDB = new frmQLBH();

            frmQLHDB.Show();
        }