void Fields_AttributeChanged(object sender, AttributeChangedEventArgs e) { if (Changed != null) { Changed(this, new EventArgs()); } }
void Fields_AttributeChangedSilent(object sender, AttributeChangedEventArgs e) { // used by the Editor to receive notifications of updates when undoing if (e.InheritedTypesSet) { m_worldModel.NotifyElementRefreshed(this); } else { m_worldModel.NotifyElementFieldUpdate(this, e.Property, e.Value, true); } }
void Fields_AttributeChanged(object sender, AttributeChangedEventArgs e) { m_worldModel.NotifyElementFieldUpdate(this, e.Property, e.Value, false); if (!m_worldModel.EditMode) { string changedScript = "changed" + e.Property; if (Fields.HasType <IScript>(changedScript)) { Parameters parameters = new Parameters("oldvalue", e.OldValue); m_worldModel.RunScript(Fields.GetAsType <IScript>(changedScript), parameters, this); } } }
void MetaFields_AttributeChangedSilent(object sender, AttributeChangedEventArgs e) { m_worldModel.NotifyElementMetaFieldUpdate(this, e.Property, e.Value, true); }