Пример #1
0
 public void NotifyChange(Resource resource, string propertyName)
 {
     if (ResourceChanged != null)
     {
         ResourceChangedEventArgs m = new ResourceChangedEventArgs(resource, propertyName);
         foreach (System.EventHandler <ResourceChangedEventArgs> e in ResourceChanged?.GetInvocationList())
         {
             e.BeginInvoke(this, m, e.EndInvoke, null);
         }
     }
 }
 public void NotifyChange(Resource resource, string propertyName)
 {
     if (ResourceChanged != null)
     {
         ResourceChangedEventArgs m = new ResourceChangedEventArgs(resource, propertyName);
         foreach (System.EventHandler <ResourceChangedEventArgs> e in ResourceChanged?.GetInvocationList())
         {
             Task.Run(() => e.Invoke(this, m));
         }
     }
 }