コード例 #1
0
        public Student(int userId)
        {
            InitializeComponent();

            _studentData = sTUDENTTableAdapter.GetData().FindBystudent_id(userId);
            lblStudentName.Text = String.Format("{0} {1} {2}", _studentData.student_firstname, _studentData.student_lastname, userId);
            StudentDashboardModal = new StudentDashboardModal(userId);
            _updateStudentProfileModalModal = new UpdateStudentProfileModal(userId);
            RegisterGroupModal = new RegisterGroupModal(userId, this);
            CreateConsultationModal = new CreateConsultationModal(userId, _studentData);
            _rateConsultationModal = new RateConsultationModal(userId);
            _rateActivityModal = new RateActivityModal(userId, _studentData.coordinator_id);
            _rateTutorActivityModal = new RateTutorActivityModal(userId, _studentData.coordinator_id);
            InitModals();

            //check if user has a group
            if (!_studentData.Isgroup_idNull())
                joinGroupToolStripMenuItem.Enabled = false;
        }
コード例 #2
0
        public Student(int userId)
        {
            InitializeComponent();

            _studentData                    = sTUDENTTableAdapter.GetData().FindBystudent_id(userId);
            lblStudentName.Text             = String.Format("{0} {1} {2}", _studentData.student_firstname, _studentData.student_lastname, userId);
            StudentDashboardModal           = new StudentDashboardModal(userId);
            _updateStudentProfileModalModal = new UpdateStudentProfileModal(userId);
            RegisterGroupModal              = new RegisterGroupModal(userId, this);
            CreateConsultationModal         = new CreateConsultationModal(userId, _studentData);
            _rateConsultationModal          = new RateConsultationModal(userId);
            _rateActivityModal              = new RateActivityModal(userId, _studentData.coordinator_id);
            _rateTutorActivityModal         = new RateTutorActivityModal(userId, _studentData.coordinator_id);
            InitModals();

            //check if user has a group
            if (!_studentData.Isgroup_idNull())
            {
                joinGroupToolStripMenuItem.Enabled = false;
            }
        }