Exemplo n.º 1
0
 /// <summary>
 /// Check if the presentation is finished and notify the controller
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="fastClockTime"></param>
 private void Instance_OneMinuteIsOver(object sender, DateTime fastClockTime)
 {
     if (_startTime.AddMinutes(PRESENTATION_MINUTES) == fastClockTime)
     {
         PresentationFinished?.Invoke(this, true);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Starts the presentation and notify the console
 /// </summary>
 /// <param name="visitors"></param>
 /// <param name="LogFromController"></param>
 public void StartPresentation(List <Visitor> visitors)
 {
     _listOfVisitors = visitors;
     SumOfVisitors  += visitors.Count;
     _startTime      = FastClock.Instance.Time;
     PresentationFinished?.Invoke(this, false);
 }