コード例 #1
0
 public void NotifyChange(Mob mob, string propertyName)
 {
     if (MobChanged != null)
     {
         MobChangedEventArgs m = new MobChangedEventArgs(mob, propertyName);
         foreach (System.EventHandler <MobChangedEventArgs> e in MobChanged?.GetInvocationList())
         {
             e.BeginInvoke(this, m, e.EndInvoke, null);
         }
     }
 }
コード例 #2
0
 public void NotifyChange(Mob mob, string propertyName)
 {
     if (MobChanged != null)
     {
         MobChangedEventArgs m = new MobChangedEventArgs(mob, propertyName);
         foreach (System.EventHandler <MobChangedEventArgs> e in MobChanged?.GetInvocationList())
         {
             Task.Run(() => e.Invoke(this, m));
         }
     }
 }