コード例 #1
0
        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();
            }
        }
コード例 #2
0
 private void MatchedBetTargetChanged(MatchedBetTargetChangedMessage obj)
 {
     Console.WriteLine("Selection has changed - check status");
     this.CurrentSelection = obj.Runner;
     SetStatus();
 }