Ejemplo n.º 1
0
 public ScoreRow(Team team, int rounds)
 {
     Number      = team.Number;
     Name        = team.Name;
     this.Scores = new int[rounds];
     for (int round = 0; round < rounds; ++round)
     {
         EventScore score = team.Scores[round];
         Scores[round] = (score == null) ? -1 : score.Score().Points;
     }
 }
Ejemplo n.º 2
0
        public string GetPoints(int round)
        {
            EventScore score = Scores[round - 1];

            if (score == null)
            {
                return("?");
            }
            else
            {
                return(score.Score().Points.ToString());
            }
        }
Ejemplo n.º 3
0
        void OnChange(object sender, EventArgs e)
        {
            if (!freeze_ && sender != null)
            {
                score_.West                 = west_.Value;
                score_.TanWest              = tan_west_.ValueYesNo;
                score_.TanEast              = tan_east_.ValueYesNo;
                score_.TanTouch             = tan_touch_.ValueYesNo;
                score_.Gray                 = gray_.ValueYesNo;
                score_.PinkCount            = (int)pink_count_.Value;
                score_.PinkCorrect          = pink_correct_.ValueYesNo;
                score_.House                = house_.ValueYesNo;
                score_.Evacuation           = evacuation_.ValueYesNo;
                score_.TreePos              = tree_pos_.ValueYesNo;
                score_.TreeUpright          = tree_upright_.ValueYesNo;
                score_.Waves                = waves_.ValueYesNo;
                score_.Truck                = truck_.ValueYesNo;
                score_.Plane                = plane_.Value;
                score_.Ambulance            = ambulance_.ValueYesNo;
                score_.Runway               = runway_.ValueYesNo;
                score_.Pointer              = (int)pointer_.Value;
                score_.PeopleWater          = people_water_.ValueInt;
                score_.PeopleTogether       = people_together_.ValueInt;
                score_.PeoplePets           = people_pets_.ValueInt;
                score_.PeopleYellow         = people_yellow_.ValueInt;
                score_.PeopleYellowSupplies = people_yellow_supplies_.ValueInt;
                score_.PeopleRed            = people_red_.ValueInt;
                score_.PeopleRedSupplies    = people_red_supplies_.ValueInt;
                score_.Robot                = robot_.ValueYesNo;
                score_.DebrisOut            = debris_out_.ValueInt;
                score_.DebrisIn             = debris_in_.ValueInt;
                score_.JunkSmall            = (int)junk_small_.Value;
                score_.JunkLarge            = (int)junk_large_.Value;
            }
            ScoreInfo score = score_.Score();

            error_.Text         = score.Error;
            score_display_.Text = string.Format("{0}", score.Points);
            if (Change != null)
            {
                Change(this, new EventArgs());
            }
        }