protected override void BeforeAutoCreateEditors()
 {
     base.BeforeAutoCreateEditors();
     TexturePreviewPropertyEditor preview = new TexturePreviewPropertyEditor();
     preview.EditedType = this.EditedType;
     preview.Getter = this.GetValue;
     this.ParentGrid.ConfigureEditor(preview);
     this.AddPropertyEditor(preview);
     TextureContentPropertyEditor content = new TextureContentPropertyEditor();
     content.EditedType = this.EditedType;
     content.Getter = this.GetValue;
     content.Setter = this.SetValues;
     content.PreventFocus = true;
     this.ParentGrid.ConfigureEditor(content);
     this.AddPropertyEditor(content);
 }
Esempio n. 2
0
        protected override void BeforeAutoCreateEditors()
        {
            base.BeforeAutoCreateEditors();
            TexturePreviewPropertyEditor preview = new TexturePreviewPropertyEditor();

            preview.EditedType = this.EditedType;
            preview.Getter     = this.GetValue;
            this.ParentGrid.ConfigureEditor(preview);
            this.AddPropertyEditor(preview);
            TextureContentPropertyEditor content = new TextureContentPropertyEditor();

            content.EditedType   = this.EditedType;
            content.Getter       = this.GetValue;
            content.Setter       = this.SetValues;
            content.PreventFocus = true;
            this.ParentGrid.ConfigureEditor(content);
            this.AddPropertyEditor(content);
        }