Example #1
0
        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();
        }
Example #2
0
 protected void OnChatLogAdded(
     ChatLogAddedEventArgs e)
 => this.ChatLogAdded?.Invoke(this, e);