private void EngineOnLog(object sender, LogEventArgs e) { LastSiusMessage = e.Message; LogCollection.Add(e.Message); while (LogCollection.Count > 20) LogCollection.RemoveAt(0); }
protected virtual void OnLog(LogEventArgs e) { EventHandler<LogEventArgs> handler = Log; if (handler != null) handler(this, e); }
private void ShootingRangeOnLog(object sender, LogEventArgs e) { OnLog(e); }
protected virtual void LogMessage(string message) { LogEventArgs e = new LogEventArgs(message); OnLog(e); }