public override void CopyFrom(object obj) { if (obj is RDate) { RDate rdt = (RDate)obj; foreach (object o in rdt.Items) { Items.Add(o); } } }
public override void CopyFrom(object obj) { if (obj is RDate) { RDate rdt = (RDate)obj; foreach (Period p in rdt.Periods) { Periods.Add(p.Copy()); } } base.CopyFrom(obj); }
public override bool Equals(object obj) { if (obj is RDate) { RDate r = (RDate)obj; for (int i = 0; i < m_Items.Count; i++) { if (!Items[i].Equals(r.Items[i])) { return(false); } } return(true); } return(base.Equals(obj)); }
public override bool Equals(object obj) { if (obj is RDate) { RDate r = (RDate)obj; if (!Periods.Count.Equals(r.Periods.Count)) { return(false); } for (int i = 0; i < Periods.Count; i++) { if (!Periods[i].Equals(r.Periods[i])) { return(false); } } return(true); } return(base.Equals(obj)); }
private void DetermineStartingRecurrence(RDate rdate, ref Date_Time dt) { foreach (Period p in rdate.Periods) { if (p.StartTime < dt) dt = p.StartTime.Copy(); } }
public RDateSerializer(RDate rdate) : base(rdate) { this.m_RDate = rdate; }