public override bool VisitLeaf(Bus bus, bool again) { if (!again && _busMatch(bus)) { _buses.Add(bus); } return(true); }
private void InternalAddBus(Bus bus) { int idx = _allBuses.Count; _allBuses.Add(bus); if (_mediator != null) { _mediator.OnBusAdded(bus, idx); } }
private void InternalAddBus(Bus bus) { int idx = _allBuses.Count; _allBuses.Add(bus); if (_systemMediator != null) { _systemMediator.NotifyBusAdded(bus, idx); } }