コード例 #1
0
        private void InfoTeamsList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            TeamStatsLite stat = InfoTeamsList.SelectedItem as TeamStatsLite;

            if (stat == null)
            {
                return;
            }

            TeamNameTxt.Text        = stat.Team.ToString();
            TeamLocationTxt.Text    = "From " + stat.Team.School;
            TeamDescriptionTxt.Text = stat.Team.Description;

            RatingSet vals = stat.GetMeanRatings();

            OverallBar.Value = vals.OverallRating;
            OverallTxt.Text  = vals.OverallRating.ToString("f3");

            AutonomousBar.Value   = vals.Autonomous;
            AutonomousTxt.Text    = vals.Autonomous.ToString("f3");
            StackingBar.Value     = vals.Stacking;
            StackingTxt.Text      = vals.Stacking.ToString("f3");
            CoopertitionBar.Value = vals.Coopertition;
            CoopertitionTxt.Text  = vals.Coopertition.ToString("f3");
            ContainersBar.Value   = vals.Containers;
            ContainersTxt.Text    = vals.Containers.ToString("f3");
            MobilityBar.Value     = vals.Mobility;
            MobilityTxt.Text      = vals.Mobility.ToString("f3");
            EfficiencyBar.Value   = vals.Efficiency;
            EfficiencyTxt.Text    = vals.Efficiency.ToString("f3");
            StabilityBar.Value    = vals.Stability;
            StabilityTxt.Text     = vals.Stability.ToString("f3");
            GripBar.Value         = vals.Grip;
            GripTxt.Text          = vals.Grip.ToString("f3");
            HumanSkillBar.Value   = vals.HumanPlayerSkill;
            HumanSkillTxt.Text    = vals.HumanPlayerSkill.ToString("f3");
        }
コード例 #2
0
 public RatingViewModel()
 {
     Ratings = new RatingSet();
 }
コード例 #3
0
 public LiteSummary(int num, RatingSet _set)
 {
     set  = _set;
     Team = num;
 }