public bool Appart(DateRange p){ if (Start > p.Finish){ return true; } if (Finish < p.Start){ return true; } return false; }
public void Merge(DateRange p){ if (Appart(p)){ return; } Start = Start > p.Start ? p.Start : Start; Finish = Finish < p.Finish ? p.Finish : Finish; }
public OperationLog(){ Range = new DateRange(DateExtensions.Begin, DateExtensions.End); }