Ejemplo n.º 1
0
 public SubdivisionMatchView(FRCApi.HybridScheduleMatch frcMatch)
 {
     if (frcMatch.tournamentLevel.ToLower() == "qualification")
     {
         this.Match = frcMatch.description.Substring(0, 1) + frcMatch.matchNumber;
     }
     else
     {
         this.Match = frcMatch.description.Substring(0, 1)+ "F" + frcMatch.matchNumber;
     }
     this.Time = frcMatch.actualStartTime;
     //Console.WriteLine(frcMatch.autoStartTime.ToUniversalTime());
     this.RedAlliance = frcMatch.RedAllianceString;
     this.BlueAlliance = frcMatch.BlueAllianceString;
     this.RedZoneScore = 1.0;
 }
Ejemplo n.º 2
0
 public Subdivision(FRCApi.Event evt, List<FRCApi.HybridScheduleMatch> matchList)
 {
     this.Event = evt;
     this.Matches = matchList;
     /*
     if (this.Matches[0].autoStartTime.Hour != 8)
     {
         foreach (FRCApi.MatchResult m in this.Matches)
         {
             m.autoStartTime = m.autoStartTime.AddHours(5);
         }
     }*/
     this.DisplayMatches = new List<SubdivisionMatchView>();
     foreach (FRCApi.HybridScheduleMatch m in this.Matches)
     {
         this.DisplayMatches.Add(new SubdivisionMatchView(m));
     }
 }