Beispiel #1
0
        /* Simply update the statistics of the last player we displayed */
        public void UpdateStatistics()
        {
            if (lastPlayerDisplayed != null)
            {
                PlayerStatistics statistics = lastPlayerDisplayed.GetStatistics();

                RemoveStatistics(statistics);
                FillStatistics(statistics);
            }
        }
Beispiel #2
0
        /* Displays the statistics for a player */
        public void DisplayStatistics(Player p)
        {
            lastPlayerDisplayed = p;
            lblPlayerName.Text  = p.Name;

            PlayerStatistics statistics = p.GetStatistics();

            ClearAllTabPages();

            GenerateTabPages(statistics.GetCategories());

            FillStatistics(statistics);
        }
        /* Displays the statistics for a player */
        public void DisplayStatistics(Player p)
        {
            lastPlayerDisplayed = p;
            lblPlayerName.Text = p.Name;

            PlayerStatistics statistics = p.GetStatistics();

            ClearAllTabPages();

            GenerateTabPages(statistics.GetCategories());

            FillStatistics(statistics);
        }