private void RaiseStopOrdersChanged(IEnumerable <Order> stopOrders)
        {
            foreach (var stopOrder in stopOrders)
            {
                StopOrderChanged?.Invoke(stopOrder);
            }

            StopOrdersChanged?.Invoke(stopOrders);
        }
Пример #2
0
 /// <summary>
 /// To call the event <see cref="StopOrdersChanged"/>.
 /// </summary>
 /// <param name="stopOrder">Stop orders that should be passed to the event.</param>
 private void RaiseStopOrderChanged(Order stopOrder)
 {
     StopOrderChanged?.Invoke(stopOrder);
     StopOrdersChanged?.Invoke(new[] { stopOrder });
 }
Пример #3
0
 /// <summary>
 /// To call the event <see cref="StopOrdersChanged"/>.
 /// </summary>
 /// <param name="stopOrders">Stop orders that should be passed to the event.</param>
 private void RaiseStopOrdersChanged(IEnumerable <Order> stopOrders)
 {
     StopOrdersChanged?.Invoke(stopOrders);
 }
Пример #4
0
 private void RealTraderOnStopOrdersChanged(IEnumerable <Order> orders)
 {
     StopOrdersChanged?.Invoke(this, new OrdersEventArgs(orders));
 }