Esempio n. 1
0
        private void AddProperty(PropertyCtrl grid, Pair <object, ObjValueLabelHint> opt)
        {
            int leafCount = grid.SetObject(opt.X, opt.Y, TableLayoutPanelCellBorderStyle.None);

            if (_maxLeafCount < leafCount)
            {
                _maxLeafCount = leafCount;
            }
        }
Esempio n. 2
0
        private PropertyCtrl BuildPropertyGrid(int width, int height, Pair <object, ObjValueLabelHint> opt)
        {
            PropertyCtrl grid = new PropertyCtrl();

            _optionsCtrls.Add(grid);
            grid.SuspendLayout();

            grid.Location = new Point(0, 0);
            grid.Size     = new Size(width, height);
            grid.Anchor   = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
            AddProperty(grid, opt);

            grid.ResumeLayout(false);
            return(grid);
        }