public bool Equals(EplanLabellingDocumentPageLineLabel other) { if (other == null) { return(false); } return(this.Property[1].Equals(other.Property[1])); }
public int CompareTo(EplanLabellingDocumentPageLineLabel comparePart) { // A null value means that this object is greater. if (comparePart == null) { return(1); } else { return(RecursiveSort(comparePart, 1)); } }
/// <summary> /// Recursive sorting to compare 6 properies /// </summary> /// <param name="comparePart"></param> /// <param name="v"></param> /// <returns></returns> private int RecursiveSort(EplanLabellingDocumentPageLineLabel comparePart, int v) { if (v == 7) { return(0); } if (this.Property[v].CompareTo(comparePart.Property[v]) != 0) { return(this.Property[v].CompareTo(comparePart.Property[v])); } else { return(RecursiveSort(comparePart, v + 1)); } }