Exemple #1
0
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (tabControl1.SelectedIndex)
            {
            case 0:
            {
                pnlGroupSP.Controls.Clear();
                Uc_NSP nsp = new Uc_NSP();
                pnlGroupSP.Controls.Add(nsp);

                break;
            }

            case 1:
            {
                pnlHangSP.Controls.Clear();
                Uc_HangSP hangSP = new Uc_HangSP();
                pnlHangSP.Controls.Add(hangSP);
                break;
            }

            case 2:
            {
                pnlProduct.Controls.Clear();
                Uc_SanPham sanPham = new Uc_SanPham();
                pnlProduct.Controls.Add(sanPham);
                break;
            }
            }
        }
Exemple #2
0
        private void Uc_QLSP_Load(object sender, EventArgs e)
        {
            pnlGroupSP.Controls.Clear();
            Uc_NSP nsp = new Uc_NSP();

            pnlGroupSP.Controls.Add(nsp);
        }