Beispiel #1
0
 public override bool Equals(object obj)
 {
     if (obj is TargetPair)
     {
         TargetPair b = (TargetPair)obj;
         return(b.TargetA == TargetA && b.TargetB == TargetB);
     }
     return(false);
 }
Beispiel #2
0
        private bool IsFilteredOut(CryptoOrder order)
        {
            if (order == null)
            {
                return(true);
            }

            // filter out by selected pair
            if (!string.IsNullOrWhiteSpace(TargetPair) && !TargetPair.Equals(order.PairClean))
            {
                return(true);
            }

            return(false);
        }