Example #1
0
 public bool Equals(EplanLabellingDocumentPageLine other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.Label.Equals(other.Label));
 }
Example #2
0
        public int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }

            EplanLabellingDocumentPageLine otherPageLine = obj as EplanLabellingDocumentPageLine;

            if (otherPageLine != null)
            {
                return(this.Label.CompareTo(otherPageLine.Label));
            }
            else
            {
                throw new ArgumentException("Object is not a PageLine");
            }
        }
Example #3
0
 public int CompareTo(EplanLabellingDocumentPageLine comparePart)
 {
     // A null value means that this object is greater.
     if (comparePart == null)
     {
         return(1);
     }
     else
     {
         if (this.Label.CompareTo(comparePart.Label) != 0)
         {
             return(this.Label.CompareTo(comparePart.Label));
         }
         else
         {
             return(0);
         }
     }
 }