public int CompareTo(IBookIndex otherIndex)
        {
            bool equalsPartyIndex = base.isEqualToParty(otherIndex);

            if (equalsPartyIndex)
            {
                return(this.GetIndex().CompareTo(otherIndex.GetIndex()));
            }
            return(base.CompareTo(otherIndex));
        }
Example #2
0
 public static bool IsEqualToPositionArticle(IBookParty position, IBookIndex element)
 {
     return(element.ContractIndex().Equals(position.ContractIndex()) &&
            element.GetIndex().Equals(position.PositionIndex()));
 }
Example #3
0
 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()));
 }