Exemple #1
0
 void Fields_AttributeChanged(object sender, AttributeChangedEventArgs e)
 {
     if (Changed != null)
     {
         Changed(this, new EventArgs());
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 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);
         }
     }
 }
Exemple #4
0
 void MetaFields_AttributeChangedSilent(object sender, AttributeChangedEventArgs e)
 {
     m_worldModel.NotifyElementMetaFieldUpdate(this, e.Property, e.Value, true);
 }