internal GroupView AddGroup(string title, Rect position) { GroupView groupView = new GroupView(title, position); AddElement(groupView); return(groupView); }
internal void AddGroup(Vector2 pos) { GroupView groupView = new GroupView("New Group", pos); AddElement(groupView); if (selection.Count > 0) { groupView.AddElements(selection.Where(s => s is NodeView).Cast <GraphElement>()); } }