private void LogBuffer_ChatLogAdded( object sender, ChatLogAddedEventArgs e) { if (sender == null) { return; } lock (this) { this.lastLogAddedTimestamp = DateTime.Now; if (!this.IsForceMinimized) { this.ShowCallback?.Invoke(); } } if (this.ChatOverlaySettings.IsAutoActivatePage) { this.ChangeActivePageCallback?.Invoke(e.ParentPage.Name); } this.ScrollToEndCallback?.Invoke(); }
protected void OnChatLogAdded( ChatLogAddedEventArgs e) => this.ChatLogAdded?.Invoke(this, e);