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