public CompetitionClassModel ChangeClassInfo(CompetitionClassInfo classInfo)
        {
            Guard.NotNull(classInfo, nameof(classInfo));

            return(new CompetitionClassModel(Results, classInfo, LastCompletedCompetitorNumber, IntermediateTimerCount, StartFinishMinDelayForSingleSensor,
                                             Alerts));
        }
 void IVisualizationActor.SetClass(CompetitionClassInfo classInfo)
 {
     gradeLabel.Text = classInfo != null ? classInfo.Grade : string.Empty;
     classTypeLabel.Text = classInfo != null ? classInfo.Type : string.Empty;
     standardCourseTimeValueLabel.Text = classInfo?.StandardCourseTime != null
         ? $"{classInfo.StandardCourseTime.Value.TotalSeconds:0}"
         : string.Empty;
 }
 public CompetitionClassModel()
 {
     Results = new ReadOnlyCollection<CompetitionRunResult>(new List<CompetitionRunResult>());
     LastCompletedCompetitorNumber = null;
     ClassInfo = new CompetitionClassInfo();
     IntermediateTimerCount = 0;
     StartFinishMinDelayForSingleSensor = TimeSpan.FromSeconds(3);
     Alerts = CompetitionAlerts.Empty;
 }
 public CompetitionClassModel()
 {
     Results = new ReadOnlyCollection <CompetitionRunResult>(new List <CompetitionRunResult>());
     LastCompletedCompetitorNumber = null;
     ClassInfo = new CompetitionClassInfo();
     IntermediateTimerCount             = 0;
     StartFinishMinDelayForSingleSensor = TimeSpan.FromSeconds(3);
     Alerts = CompetitionAlerts.Empty;
 }
        private CompetitionClassModel(IReadOnlyCollection <CompetitionRunResult> results, CompetitionClassInfo classInfo, int?lastCompletedCompetitorNumber,
                                      int intermediateTimerCount, TimeSpan startFinishMinDelayForSingleSensor, CompetitionAlerts?alerts)
        {
            AssertUniqueCompetitors(results);

            Results   = results;
            ClassInfo = classInfo;
            LastCompletedCompetitorNumber      = lastCompletedCompetitorNumber;
            IntermediateTimerCount             = intermediateTimerCount;
            StartFinishMinDelayForSingleSensor = startFinishMinDelayForSingleSensor;
            Alerts = alerts ?? CompetitionAlerts.Empty;
        }
 void IVisualizationActor.SetClass(CompetitionClassInfo classInfo)
 {
 }