예제 #1
0
 /// <summary>
 /// invoke RaiseAITaskStopEvent
 /// </summary>
 protected virtual void OnAITaskStopped()
 {
     LastShotTime = DateTime.UtcNow;
     RaiseAITaskStopEvent?.Invoke(this, new EventArgs());
     //相当于下面的
     //if (StopEventHandler != null)
     //{
     //    StopEventHandler(this, new EventArgs());
     //}
 }
예제 #2
0
 /// <summary>
 /// 发布 RaiseAITaskStopEvent 事件
 /// </summary>
 protected virtual void OnAITaskStopped()
 {
     LastShotTime = DateTime.UtcNow;
     RaiseAITaskStopEvent?.Invoke(this, new EventArgs());
 }