Ejemplo n.º 1
0
 private void AddToTable(SubjectSelection selection)
 {
     all_selections.Rows.Add(
         selection.Id,
         selection.Subject,
         selection.Hall,
         Lecturer.LecturersToString(selection.Lecturers),
         LectureTime.TimeListToString(selection.Times),
         selection.ToString()
         );
 }
Ejemplo n.º 2
0
 private void UpdateInTable(SubjectSelection selection)
 {
     foreach (DataRow row in all_selections.Rows)
     {
         if (Convert.ToInt32(row["Id"]) == selection.Id)
         {
             row["Subject"]   = selection.Subject;
             row["Hall"]      = selection.Hall;
             row["Lecturers"] = Lecturer.LecturersToString(selection.Lecturers);
             row["Times"]     = LectureTime.TimeListToString(selection.Times);
             row["Filter"]    = selection.ToString();
         }
     }
 }