public RemovePropertyAction(TypeDescriptor tDesc, PropertyDescriptor pDesc, PropertyDescriptorListEditor editor) : base(pDesc.Name, Assets.AssetManager.ICON_MINUS) { Descriptor = tDesc; Editor = editor; Property = pDesc; }
private void initControls() { PropertyGrid = new PropertyDescriptorListEditor(); List <PropertyDescriptor> pList = Descriptor.getPropertySet(); PropertyGrid.PropertyList = pList; PropertyGrid.addOtherProperty("Type", "\tBasic", Descriptor.TypeDescriptorInFileManager.Name).PropIsReadOnly = true; PropertyGrid.PropertyAdapter.PropertyValueChanged += (s, a) => { }; editScriptsAction = new AddRemoveInstanceScriptsAction(Descriptor, this); ToolStripItems.Add(editScriptsAction.generateControl()); //ToolStripContentPanel deleteAction = new DeleteInstanceAction(Descriptor); ToolStripItems.Add(deleteAction.generateControl <ToolStripButton>()); refreshScripts(); }
public AddPropertyAction(TypeDescriptor desc, PropertyDescriptorListEditor editor) : base("Add Property", WhiskeyEditor.UI.Assets.AssetManager.ICON_PLUS) { this.editor = editor; this.desc = desc; }