public AttributeChangedArgs(int id, RepAttributes attribute, object newValue) { this.RepresentationID = id; this.AttributeType = attribute; this.NewAttributeValue = newValue; }
public void SetInnerColor(Color newColor, RepAttributes colorType) { RepInnerColor = newColor; AttributeChangedArgs aca; if (colorType == RepAttributes.InnerColor) aca = new AttributeChangedArgs(this.ID, RepAttributes.InnerColor, newColor); else aca = new AttributeChangedArgs(this.ID, RepAttributes.InnerColor, newColor); if (AttributeChanged != null) { AttributeChanged(this, aca); } }