Пример #1
0
        private Form ExecuteFunctions(StructInfo si)
        {
            Form f = new Form();

            switch (si.MenuId)
            {
            case 3501:
                fTaoHoadon frm = new fTaoHoadon();
                frm.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm);

            case 3502:
                fDieuXe frm1 = new fDieuXe();
                frm1.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm1);

            case 3503:
                fTaoPhieuXuatLSX frm2 = new fTaoPhieuXuatLSX();
                frm2.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm2);

            case 3504:
                fNhapTP frm3 = new fNhapTP();
                frm3.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm3);
            }
            return(f);
        }
Пример #2
0
        private Form ExecuteFunctions(StructInfo si)
        {
            Form f = new Form();

            switch (si.MenuId)
            {
            case 3501:
                fTaoHoadon frm = new fTaoHoadon();
                frm.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm);

            case 3502:
                fDieuXe frm1 = new fDieuXe();
                frm1.Text = si.MenuName;
                //frm.ShowDialog();
                return(frm1);
            }
            return(f);
        }