Пример #1
0
        public int CompareTo(Event other)
        {
            int compare = StartTime.CompareTo(other.StartTime);

            if (compare != 0)
            {
                return(compare);
            }

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