public override bool Equals(object obj) { if (obj is TargetPair) { TargetPair b = (TargetPair)obj; return(b.TargetA == TargetA && b.TargetB == TargetB); } return(false); }
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); }