Beispiel #1
0
        private void btnCreateBill_Click(object sender, EventArgs e)
        {
            frmBeforeCreateBill frm = new frmBeforeCreateBill(user);

            frm.Show();
        }
Beispiel #2
0
        public void checkTab(int index)
        {
            string tabName = tabControl1.TabPages[index].Name;

            if (tabName == "tabQLDMSP")
            {                                //QLDM
                frmQLDMSP frm = new frmQLDMSP();
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabQLHD")
            {                                //QLHD
                frmHoaDon frm = new frmHoaDon(user);
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabQLNCC")
            {                                //QLNCC
                frmQuanLyNCC frm = new frmQuanLyNCC();
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabQLNV")
            {                                //QLNV
                frmQLNV frm = new frmQLNV();
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabQLKH")
            {                                //QLKH
                frmQLKH frm = new frmQLKH(user);
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabCreateBill")
            {                                //Create Bill
                frmBeforeCreateBill frm = new frmBeforeCreateBill(user);
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabStatistic")
            {                                //frmStatistic
                frmStatistic frm = new frmStatistic();
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
            else if (tabName == "tabQLTK")
            {                                //frmStatistic
                frmQLTK frm = new frmQLTK();
                frm.TopLevel        = false; // set parent != desktop
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Parent          = tabControl1.SelectedTab;
                frm.Show();
            }
        }