示例#1
0
文件: Accountant.cs 项目: minskowl/MY
 /// <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);
 }
示例#2
0
 /// <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);
 }