예제 #1
0
        /// <summary>
        /// This form allows the user to contact the IT department of the institution
        /// </summary>
        public frmContactIT()
        {
            InitializeComponent();

            //If a student is logged in
            if (Config.getStudent() != null)
            {
                //This student object is the student logged in
                this.pS = Config.getStudent();
            }

            //If a teacher is logged in
            if (Config.getTTeacher() != null)
            {
                //Load the logged in teacher
                this.pT = Config.getTTeacher();
            }
        }
        private void frmStudentProfile_Load(object sender, EventArgs e)
        {
            m = Config.getStudent();
            //loads the courses
            loadCourses();

            //nothing set to the contact info
            lblContactInfo.Text = "";

            //noting set to the contact info
            lblMarkDisplay.Text = "";

            //label shows the students first and last name
            lblSName.Text = m.getStudFirstName(m) + " " + m.getStudLastName(m);

            //label shows what grade he is in
            lblGrade.Text = "Grade: " + m.getstudGrade(m).ToString();
        }