public PreferencesRow AddPreferencesRow(ProfsRow parentProfsRowByFK_Preferences_Profs, CoursesRow parentCoursesRowByFK_Preferences_Courses, int Weight, int Version, int Type) { PreferencesRow rowPreferencesRow = ((PreferencesRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, null, Weight, Version, Type}; if ((parentProfsRowByFK_Preferences_Profs != null)) { columnValuesArray[0] = parentProfsRowByFK_Preferences_Profs[0]; } if ((parentCoursesRowByFK_Preferences_Courses != null)) { columnValuesArray[1] = parentCoursesRowByFK_Preferences_Courses[0]; } rowPreferencesRow.ItemArray = columnValuesArray; this.Rows.Add(rowPreferencesRow); return rowPreferencesRow; }
public CoursesRow AddCoursesRow(string CourseName, string TimeSlot, string DOW, ProfsRow parentProfsRowByFK_Courses_Profs, int Version) { CoursesRow rowCoursesRow = ((CoursesRow)(this.NewRow())); object[] columnValuesArray = new object[] { null, CourseName, TimeSlot, DOW, null, Version}; if ((parentProfsRowByFK_Courses_Profs != null)) { columnValuesArray[4] = parentProfsRowByFK_Courses_Profs[0]; } rowCoursesRow.ItemArray = columnValuesArray; this.Rows.Add(rowCoursesRow); return rowCoursesRow; }
public void RemoveProfsRow(ProfsRow row) { this.Rows.Remove(row); }
public ProfsRowChangeEvent(ProfsRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void AddProfsRow(ProfsRow row) { this.Rows.Add(row); }