public int CompareTo(IBookIndex otherIndex) { bool equalsPartyIndex = base.isEqualToParty(otherIndex); if (equalsPartyIndex) { return(this.GetIndex().CompareTo(otherIndex.GetIndex())); } return(base.CompareTo(otherIndex)); }
public static bool IsEqualToPositionArticle(IBookParty position, IBookIndex element) { return(element.ContractIndex().Equals(position.ContractIndex()) && element.GetIndex().Equals(position.PositionIndex())); }
public static bool IsEqualToContractArticle(ICodeIndex contract, IBookIndex element) { return(element.GetIndex().Equals(contract)); }
public bool isEqualToOrder(IBookIndex other) { return(base.isEqualToParty(other) && this.GetIndex().Equals(other.GetIndex())); }