/// <summary> /// Remove the checkin reference of the <paramref name="section"/> /// </summary> /// <param name="section">The section to modify</param> private void DetachSection(CheckinSection section) { //OnPropertyChanging("CheckinSection"); section.Checkin = null; }
public bool Equals(CheckinSection other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.TrainId, TrainId) && Equals(other.DepartureStation, DepartureStation) && other.DepartureTime.TimeOfDay.Equals(DepartureTime.TimeOfDay) && Equals(other.ArrivalStation, ArrivalStation) && other.ArrivalTime.TimeOfDay.Equals(ArrivalTime.TimeOfDay); }
/// <summary> /// Set the checkin reference of the <paramref name="section"/> to <value>this</value> /// </summary> /// <param name="section">The section to modify</param> private void AttachSection(CheckinSection section) { //OnPropertyChanging("CheckinSection"); section.Checkin = this; }