public OrderFailCommand(OrderFail fail, OrderActions action) { if (fail == null) throw new ArgumentNullException("fail"); Fail = fail; Action = action; }
public void AddCancelFail(OrderFail fail) { _orderCancelFails.Add(fail); }
public void AddRegisterFail(OrderFail fail) { _orderRegisterFails.Add(fail); }
private void OnStrategyOrderRegisterFailed(OrderFail fail) { OrderGrid.AddRegistrationFail(fail); }
/// <summary> /// Добавить описание ошибки регистрации в таблицу. /// </summary> /// <param name="fail">Ошибка.</param> public void AddRegistrationFail(OrderFail fail) { if (fail == null) throw new ArgumentNullException("fail"); var item = _orders.TryGet(fail.Order); if (item != null) item.Comment = fail.Error.Message; }
private void RaiseOrderCancelFailed(OrderFail fail) { OrderCancelFailed.SafeInvoke(fail); var multiEvt = OrdersCancelFailed; if (multiEvt == null) return; multiEvt.SafeInvoke(new[] { fail }); }