Пример #1
0
        public int CompareTo(Occurrence other)
        {
            if (Period == null || Period.StartTime == null)
            {
                return(-1);
            }

            if (other.Period == null || other.Period.StartTime == null)
            {
                return(1);
            }

            return(Period.CompareTo(other.Period));
        }
Пример #2
0
 public int CompareTo(AlarmOccurrence other)
 {
     return(Period.CompareTo(other.Period));
 }