private void CreateSpanCells()
        {
            _inCreateCells = true;
            for (var i = 0; i < ColumnSpans.Count(); i++)
            {
                var panel = new CompositPanel();

                //создаем обертку PropertiesControl
                var propertiesNode = RegisterSpanCell(panel);

                propertiesNode.ControlWrapper.Dock = DockStyle.Left;

                _spanCells.Add(propertiesNode);
            }
            _inCreateCells = false;
        }
        private PropertiesNode RegisterSpanCell(CompositPanel panel)
        {
            _memento.BeginUpdate();

            var propertiesNode = new PropertiesNode(panel)
            {
                ControlName        = ObjectInspector.ControlRepository.GetName("GridPanelCell"),
                EnabledLayoutTypes = new List <EnabledItems>
                {
                    EnabledItems.Action,
                    EnabledItems.Data,
                    EnabledItems.Layout
                },
                OnCopy = () => false
            };

            if (ObjectInspector != null)
            {
                ObjectInspector.AddNode(propertiesNode);
            }
            _memento.EndUpdate();
            //возвращаем обертку PropertiesControl над добавляемой панелью
            return(propertiesNode);
        }