//New instance of teacher //Gathers teacher information public frmTeacherProfile() { //Gets the teacher's information t = Config.getTTeacher(); //Initialize the form InitializeComponent(); }
/// <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(); } }
public frmToolRental() { InitializeComponent(); loadEquipment(); tea = Config.getTTeacher(); }