private void RaiseStopOrdersChanged(IEnumerable <Order> stopOrders) { foreach (var stopOrder in stopOrders) { StopOrderChanged?.Invoke(stopOrder); } StopOrdersChanged?.Invoke(stopOrders); }
/// <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 }); }
/// <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); }
private void RealTraderOnStopOrdersChanged(IEnumerable <Order> orders) { StopOrdersChanged?.Invoke(this, new OrdersEventArgs(orders)); }