protected virtual void OnRemoved(RemovedEventArgs e) { if (Removed != null) { Removed(this, e); } }
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); }); } } }
void OnBodyRemoved(object sender, RemovedEventArgs e) { this.Lifetime.IsExpired = true; }
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);
void Connections_Removed(object sender, RemovedEventArgs<IrcConnection> args) { foreach (ConnectionStateListViewItem item in ConnectionListView.Items) { if (item.Connection == args.Item) { ConnectionListView.Items.Remove(item); break; } } }