public GroupView AddGroupView(Group block) { var c = new GroupView(); c.Initialize(this, block); AddElement(c); groupViews.Add(c); return(c); }
public void AddSelectionsToGroup(GroupView view) { foreach (var selectedNode in selection) { if (selectedNode is BaseNodeView) { if (groupViews.Exists(x => x.ContainsElement(selectedNode as BaseNodeView))) { continue; } view.AddElement(selectedNode as BaseNodeView); } } }