Exemple #1
0
        public Market(string tenNV, int maCV, int MANV)
        {
            InitializeComponent();

            string[] arrListStr = tenNV.Split(' ');

            txtTK.Text = arrListStr[arrListStr.Length - 1];

            maNV = MANV;

            UserControl usc = null;

            GridMain.Children.Clear();
            if (maCV == 1 || maCV == 2)
            {
                usc = new QuanLy(maNV);
                GridMain.Children.Add(usc);
            }
            else if (maCV == 3)
            {
                usc = new ThuNgan(maNV);
                GridMain.Children.Add(usc);
            }
            else
            {
                usc = new Kho(maNV);
                GridMain.Children.Add(usc);
            }
        }
Exemple #2
0
        public Market()
        {
            InitializeComponent();

            UserControl usc = null;

            GridMain.Children.Clear();
            usc = new QuanLy(maNV);
            GridMain.Children.Add(usc);
        }