예제 #1
0
        public void AddComment(Comment comment)
        {
            Comments.TryAdd(comment);

            NewCommentReceived?.Invoke(this, comment);
        }
예제 #2
0
 protected virtual void OnNewCommentReceived(Comment c) => NewCommentReceived?.Invoke(this, new NewCommentReceivedEventArgs {
     Comment = c
 });