Пример #1
0
        public void HandleInstructieAfgelopen(InstructieAfgelopenArgs args)
        {
            List <Sporter> startSporters = instructieGroep.SportersVerlatenRij(args.AantalSporters);

            foreach (Sporter sp in startSporters)
            {
                wachtrijStarten.SporterNeemPlaatsInRij(sp);
            }
            List <Sporter> wachtrijSporters = SportersVerlatenRij(args.AantalSporters);

            foreach (Sporter sp in wachtrijSporters)
            {
                instructieGroep.SporterNeemPlaatsInRij(sp);
            }
        }
Пример #2
0
        public virtual void RaiseInstructieAfgelopen(InstructieAfgelopenArgs args)
        {
            InstructieAfgelopenHandler handler = InstructieAfgelopen;

            handler?.Invoke(args);
        }