Exemple #1
0
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
Exemple #2
0
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     foreach (Body b in Bodies)
     {
         b.IsFrozen = false;
     }
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
 private void DestroyObsoleteWindows(object container, RemovedEventArgs args)
 {
     foreach (var id in args.RemovedIds)
     {
         var v = _pinnedViewers.FirstOrDefault(w => w.ObservationContainer == container.GetHashCode() &&
                                               w.ObservationId == id);
         if (v != null)
         {
             MainThreadInvoker.Enqueue(() =>
             {
                 Destroy(v.gameObject);
                 _pinnedViewers.Remove(v);
             });
         }
     }
 }
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     if (Removed != null) { Removed(this, e); }
 }
Exemple #5
0
 protected virtual void OnRemoved(RemovedEventArgs e)
 {
     foreach (Body b in Bodies)
     {
         b.IsFrozen = false;
     }
     if (Removed != null) { Removed(this, e); }
 }
 void OnBodyRemoved(object sender, RemovedEventArgs e)
 {
     this.Lifetime.IsExpired = true;
 }
Exemple #7
0
 void entity_Removed(object sender, RemovedEventArgs e)
 {
     this.entity.PositionChanged -= entity_NewState;
     this.entity.Removed         -= entity_Removed;
     this.removed = true;
 }
 public abstract void OnItemsRemoved(object sender, RemovedEventArgs e);
Exemple #9
0
 void Connections_Removed(object sender, RemovedEventArgs<IrcConnection> args)
 {
     foreach (ConnectionStateListViewItem item in ConnectionListView.Items)
     {
         if (item.Connection == args.Item)
         {
             ConnectionListView.Items.Remove(item);
             break;
         }
     }
 }