public override bool VisitLeaf(Bus bus, bool again)
 {
     if (!again && _busMatch(bus))
     {
         _buses.Add(bus);
     }
     return(true);
 }
Example #2
0
        private void InternalAddBus(Bus bus)
        {
            int idx = _allBuses.Count;

            _allBuses.Add(bus);
            if (_mediator != null)
            {
                _mediator.OnBusAdded(bus, idx);
            }
        }
Example #3
0
        private void InternalAddBus(Bus bus)
        {
            int idx = _allBuses.Count;

            _allBuses.Add(bus);
            if (_systemMediator != null)
            {
                _systemMediator.NotifyBusAdded(bus, idx);
            }
        }