protected override void BuildInterface() { _nameProperty = new StringPropertyTabItem(); _nameProperty.OnGetValue += OnGetName; _nameProperty.OnSetValue += OnSetName; PropertyListGenerator.AddProperty("Name", _nameProperty); _transparencyProperty = new DoubleSliderPropertyTabItem(0, 1); _transparencyProperty.OnGetValue += OnGetTransparency; _transparencyProperty.OnSetValue += OnSetTransparency; PropertyListGenerator.AddProperty("Transparency", _transparencyProperty); _colorProperty = new ColorPropertyTabItem(); _colorProperty.OnGetValue += OnGetColor; _colorProperty.OnSetValue += OnSetColor; PropertyListGenerator.AddProperty("Color", _colorProperty); var container = Parent.Root.Set<LayerContainerInterpreter>(); _layerProperty = new DropDownPropertyTabItem(container.LayerNames); _layerProperty.OnGetValue += OnLayerIndexChange; _layerProperty.OnSetValue += OnSetLayerIndex; PropertyListGenerator.AddProperty("Layer", _layerProperty); _constraintsProperty = new ListPropertyTabItem(); _constraintsProperty.OnGetValue += OnGetConstraints; PropertyListGenerator.AddProperty("Constraints", _constraintsProperty); _newConstraintsProperty = new AvailableConstraintsTabItem(44); _newConstraintsProperty.OnGetValue += OnGetPossibleConstraints; PropertyListGenerator.AddProperty("Add Constraints", _newConstraintsProperty); }
protected override void BuildInterface() { _shapesProperty = new ListShapesTabItem(); _shapesProperty.OnGetValue += OnGetShapes; PropertyListGenerator.AddProperty("Shapes", _shapesProperty); _constraintsProperty = new ListPropertyTabItem(); _constraintsProperty.OnGetValue += OnGetConstraints; PropertyListGenerator.AddProperty("Constraints", _constraintsProperty); _newConstraintsProperty = new AvailableConstraintsTabItem(120); _newConstraintsProperty.OnGetValue += OnGetPossibleConstraints; PropertyListGenerator.AddProperty("Add Constraints", _newConstraintsProperty); }