示例#1
0
 public void OnPropertyChanged(string property)
 {
     foreach (WeakReference entry in this.registrar)
     {
         if (!entry.IsAlive)
         {
             continue;
         }
         stateVar dataStore = (stateVar)entry.Target;
         dataStore.FirePropertyChanged(property);
     }
 }
示例#2
0
 public void Register(stateVar dataStore)
 {
     this.registrar.Add(new WeakReference(dataStore));
 }