private void Timer_Elapsed(object sender, ElapsedEventArgs e) { if (PintStarted != null) { PintStartedArgs args = new PintStartedArgs(); args.TijdstipVanBrewedPint = DateTime.Now; PintStarted(this, args); } }
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)); } }