コード例 #1
0
 public Classes()
 {
     ChangedData = new List <bool>();
     for (int i = 0; i < 33; i++)
     {
         ChangedData.Add(false);
     }
     CRN            = "";
     DeptName       = "";
     ClassNumber    = 0;
     SectionNumber  = 0;
     ClassName      = "";
     Credits        = 0;
     ClassDay       = "";
     StartTime      = new Timeslot();
     SeatsTaken     = 0;
     Classroom      = new ClassRoom();
     Prof           = new Professors();
     isAssigned     = false;
     Online         = false;
     isAppointment  = false;
     hasChanged     = false;
     excludeCredits = false;
     ExtraData      = new List <string>();
     Notes          = "";
     SectionNotes   = "";
     isCrossFirst   = false;
     MaxSeats       = "0";
     ProjSeats      = "0";
     for (int i = 0; i < 33; i++)
     {
         ChangedData[i] = false;
     }
 }
コード例 #2
0
 public EditProfessorDialog(Professors prof)
 {
     InitializeComponent();
     targetProfessor = prof;
     if (targetProfessor != null)
     {
         originalSRUID             = targetProfessor.SRUID;
         FirstName.Text            = targetProfessor.FirstName;
         LastName.Text             = targetProfessor.LastName;
         ID.Text                   = targetProfessor.SRUID;
         colorPicker.SelectedColor = targetProfessor.profRGB.colorBrush;
         Classes.Text              = targetProfessor.MaxClasses.ToString();
         Prep.Text                 = targetProfessor.MaxPrep.ToString();
     }
 }
コード例 #3
0
 public Classes(string crn, string deptName, int classNum, int secNum, string className, int credits,
                string classDay, Timeslot startTime, int seatsTaken, ClassRoom classroom, Professors professor, bool online, bool appointment, bool changed, string sectionNotes, string notes, List <string> extras, string maxSeats, string projSeats)
 {
     ChangedData = new List <bool>();
     for (int i = 0; i < 33; i++)
     {
         ChangedData.Add(false);
     }
     CRN           = crn;
     DeptName      = deptName;
     ClassNumber   = classNum;
     SectionNumber = secNum;
     ClassName     = className;
     Credits       = credits;
     ClassDay      = classDay;
     StartTime     = startTime;
     SeatsTaken    = seatsTaken;
     Classroom     = classroom;
     Prof          = professor;
     isAssigned    = false;
     Online        = online;
     isAppointment = appointment;
     hasChanged    = changed;
     ExtraData     = extras;
     if (extras.Count == 0)
     {
         // Initialize
         for (int i = 0; i < 15; i++)
         {
             extras.Add("");
         }
     }
     Notes             = notes;
     SectionNotes      = sectionNotes;
     PreferenceLevel   = 0;
     PreferenceMessage = "";
     PreferenceCode    = "";
     isCrossFirst      = false;
     MaxSeats          = maxSeats;
     ProjSeats         = projSeats;
     for (int i = 0; i < 33; i++)
     {
         ChangedData[i] = false;
     }
 }