private void TargetChanged(MatchedBetTargetChangedMessage msg) { if (!isManual) { var oldSuspend = this.suspendCalculation; this.suspendCalculation = true; this.LayOdds = msg.Runner.LayPrices[0].Odds; this.suspendCalculation = oldSuspend; this.Calculate(); } }
private void MatchedBetTargetChanged(MatchedBetTargetChangedMessage obj) { Console.WriteLine("Selection has changed - check status"); this.CurrentSelection = obj.Runner; SetStatus(); }