Ejemplo n.º 1
0
        // on-the-fly
        private void CreateOnTheFlyPropertyE()
        {
            CustomPropertyDescriptor cpd = m_dctd.CreateProperty("PropE", typeof(int), 5,
                                                                 -1, // insert at the end of the list
                                                                 new BrowsableAttribute(true),
                                                                 new DefaultValueAttribute(5),
                                                                 new DisplayNameAttribute("PropertyE"),
                                                                 new DescriptionAttribute("Description of PropertyE"),
                                                                 new IdAttribute(5, 2));

            cpd.AddValueChanged(this, new EventHandler(this.OnTheFlyPropertyChanged));
        }