Пример #1
0
        internal GroupView AddGroup(string title, Rect position)
        {
            GroupView groupView = new GroupView(title, position);

            AddElement(groupView);
            return(groupView);
        }
Пример #2
0
        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>());
            }
        }