CSharpGL.FormPropertyGridEditor.FormPropertyGridEditor C# (CSharp) Method

FormPropertyGridEditor() public method

public FormPropertyGridEditor ( ITypeDescriptorContext context, IServiceProvider provider, object value ) : System
context ITypeDescriptorContext
provider IServiceProvider
value object
return System
        public FormPropertyGridEditor(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            InitializeComponent();

            this.lblSelectedType.Text = string.Empty;

            this.context = context;
            this.provider = provider;
            this.propertyGrid.SelectedObject = value;
            this.Text = string.Format("{0} - Property Editor", value);
            if (value != null)
            { this.lblSelectedType.Text = string.Format("{0}", value.GetType()); }
            else
            { this.lblSelectedType.Text = string.Format("NULL"); }
            this.propertyGrid.PropertyValueChanged += propertyGrid_PropertyValueChanged;
        }