public void UpdateDirty(int attributeIndex, object value) { DirtyAttributes[attributeIndex] = value; if (OnChange != null) { OnChange(this, true, attributeIndex, value); } }