Ejemplo n.º 1
0
        public void nextForm()
        {
            switch (role)
            {
            case 1:
                AdminForm adminform = new AdminForm();
                adminform.ShowDialog();
                break;

            case 2:
                frmGiaoVien frmGV = new frmGiaoVien();
                frmGV.LoadID(id);
                frmGV.StartPosition = FormStartPosition.CenterScreen;
                frmGV.ShowDialog();
                break;

            case 3:
                frmSinhVien frmSV = new frmSinhVien();
                frmSV.LoadID(id);
                frmSV.StartPosition = FormStartPosition.CenterScreen;
                frmSV.ShowDialog();
                break;
            }
        }