Пример #1
0
 private void Timer_Elapsed(object sender, ElapsedEventArgs e)
 {
     if (PintStarted != null)
     {
         PintStartedArgs args = new PintStartedArgs();
         args.TijdstipVanBrewedPint = DateTime.Now;
         PintStarted(this, args);
     }
 }
Пример #2
0
        private void Timer_Elapsed(object sender, ElapsedEventArgs e)
        {
            if (PintStarted != null)
            {
                PintStartedArgs args = new PintStartedArgs
                {
                    TijdstipVanBrewedPint = DateTime.Now
                };
                PintStarted(this, args);

                DishCompleted(this, new DishCompletedArgs(dishStarted));
            }
        }