예제 #1
0
        public int CompareTo(IBookIndex otherIndex)
        {
            bool equalsPartyIndex = base.isEqualToParty(otherIndex);

            if (equalsPartyIndex)
            {
                return(this.GetIndex().CompareTo(otherIndex.GetIndex()));
            }
            return(base.CompareTo(otherIndex));
        }
예제 #2
0
 public static bool IsEqualToPositionArticle(IBookParty position, IBookIndex element)
 {
     return(element.ContractIndex().Equals(position.ContractIndex()) &&
            element.GetIndex().Equals(position.PositionIndex()));
 }
예제 #3
0
 public static bool IsEqualToContractArticle(ICodeIndex contract, IBookIndex element)
 {
     return(element.GetIndex().Equals(contract));
 }
예제 #4
0
 public bool isEqualToOrder(IBookIndex other)
 {
     return(base.isEqualToParty(other) && this.GetIndex().Equals(other.GetIndex()));
 }