public void AddCommentBlockView(CommentBlock block) { var c = new CommentBlockView(); c.Initialize(this, block); AddElement(c); commentBlockViews.Add(c); }
public void AddSelectionsToCommentBlock(CommentBlockView view) { foreach (var selectedNode in selection) { if (selectedNode is BaseNodeView) { if (commentBlockViews.Exists(x => x.ContainsElement(selectedNode as BaseNodeView))) { continue; } view.AddElement(selectedNode as BaseNodeView); } } }