Ejemplo n.º 1
0
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }

            DeadlineCurrency dc = (DeadlineCurrency)obj;

            if (dc.AircraftID == AircraftID)
            {
                return(DisplayName.CompareCurrentCultureIgnoreCase(dc.DisplayName));
            }
            else
            {
                return(AircraftID.CompareTo(dc.AircraftID));
            }
        }