/// <summary> /// Stuffs the finded. /// </summary> /// <param name="tradeType">Type of the trade.</param> /// <param name="condition">The condition.</param> /// <param name="controller">The controller.</param> /// <returns></returns> private bool StuffFinded(TradeType tradeType, StuffSearchCondition condition, TradeItemController controller) { Log.Warn(string.Format("Найден {0} по цене {1}.", condition.ItemName, controller.GetPrice(tradeType)), condition.ToString(), condition.Clone()); if (AppCore.AccountantSettings.SearchStrategy.SoundNotification) { PlaySound(); } return(true); }
/// <summary> /// Finds the handler. /// </summary> /// <param name="tradeType">Type of the trade.</param> /// <param name="condition">The condition.</param> /// <param name="controller">The controller.</param> /// <returns></returns> private bool FindHandler(TradeType tradeType, StuffSearchCondition condition, TradeItemController controller) { OnItemMatched(new ItemMatchedEventArgs(condition, controller.GetPrice(tradeType))); return(true); }