Esempio n. 1
0
        public PropertyGridControl()
        {
            InitializeComponent();

            _propertyRegister = new PropertyRegister(this, EditValueChangedEvent);

            Properties = new PropertyCollection(_propertyRegister, TreeList.View.Nodes);
        }
        public PropertyCollection(PropertyRegister register, TreeListNodeCollection parentNodes)
        {
            if (register == null)
            {
                throw new ArgumentNullException("register");
            }

            if (parentNodes == null)
            {
                throw new ArgumentNullException("parentNodes");
            }

            _register    = register;
            _parentNodes = parentNodes;
            _properties  = new Dictionary <PropertyDefinition, TreeListNode>();
        }