예제 #1
0
		public OrderFailCommand(OrderFail fail, OrderActions action)
		{
			if (fail == null)
				throw new ArgumentNullException("fail");

			Fail = fail;
			Action = action;
		}
예제 #2
0
		public void AddCancelFail(OrderFail fail)
		{
			_orderCancelFails.Add(fail);
		}
예제 #3
0
		public void AddRegisterFail(OrderFail fail)
		{
			_orderRegisterFails.Add(fail);
		}
		private void OnStrategyOrderRegisterFailed(OrderFail fail)
		{
			OrderGrid.AddRegistrationFail(fail);
		}
예제 #5
0
		/// <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;
		}
예제 #6
0
		private void RaiseOrderCancelFailed(OrderFail fail)
		{
			OrderCancelFailed.SafeInvoke(fail);

			var multiEvt = OrdersCancelFailed;

			if (multiEvt == null)
				return;

			multiEvt.SafeInvoke(new[] { fail });
		}