Ejemplo n.º 1
0
        public bool IsCloseAndSameType(ActivityPeriod activityPeriod, TimeSpan closenessPeriod)
        {
            if (GetType() != activityPeriod.GetType())
            {
                return false;
            }

            if (((End - activityPeriod.Start).Duration() <= closenessPeriod) ||
                ((Start - activityPeriod.End).Duration() <= closenessPeriod))
            {
                return true;
            }
            return false;
        }