Esempio n. 1
0
		public OrderFailCommand(OrderFail fail, OrderActions action)
		{
			if (fail == null)
				throw new ArgumentNullException("fail");

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

			var multiEvt = OrdersCancelFailed;

			if (multiEvt == null)
				return;

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