Esempio n. 1
0
 //-----------------------------------------------------------------
 protected void OnTemplateEditChanged_UpdateObservers() //note: on edit changed.. component value is not taken into consideration
 {
     //note: can clear the _observersList, cause otherwise the _observersList elements are cloned from the template
     ObserversList.ForEach(x =>
     {
         TemplateInstance.CloneTo(x);
         x.IsInEditMode = false;
     });
     if (OnTemplateEditChanged != null)
     {
         OnTemplateEditChanged();
     }
 }
Esempio n. 2
0
 public void ClearObservers()
 {
     ObserversList.ForEach(AssetsPath.DestroyAsset);
     ObserversList.Clear();
 }