LoadStats() public méthode

public LoadStats ( SubCategoryStat stats, string homeName, string awayName ) : void
stats SubCategoryStat
homeName string
awayName string
Résultat void
Exemple #1
0
        public void LoadStats(EventTypeStats stats)
        {
            homeLabel.Text = HomeName;
            awayLabel.Text = AwayName;

            alltagger.LoadStats(stats, TeamType.BOTH);

            hometagger.LoadStats(stats, TeamType.LOCAL);

            awaytagger.LoadStats(stats, TeamType.VISITOR);

            foreach (Widget child in vbox1.AllChildren)
            {
                if (child is SubCategoryViewer || child is HSeparator)
                {
                    vbox1.Remove(child);
                }
            }
            subcatViewers       = new List <SubCategoryViewer>();
            nodatalabel.Visible = stats.SubcategoriesStats.Count == 0;
            foreach (SubCategoryStat st in stats.SubcategoriesStats)
            {
                SubCategoryViewer subcatviewer = new SubCategoryViewer();
                subcatviewer.LoadStats(st, HomeName, AwayName);
                subcatViewers.Add(subcatviewer);
                vbox1.PackStart(subcatviewer);
                vbox1.PackStart(new HSeparator());
                subcatviewer.Show();
            }
        }
        public void LoadStats(EventTypeStats stats)
        {
            homeLabel.Text = HomeName;
            awayLabel.Text = AwayName;

            alltagger.LoadStats (stats, TeamType.BOTH);

            hometagger.LoadStats (stats, TeamType.LOCAL);

            awaytagger.LoadStats (stats, TeamType.VISITOR);

            foreach (Widget child in vbox1.AllChildren) {
                if (child is SubCategoryViewer || child is HSeparator)
                    vbox1.Remove (child);
            }
            subcatViewers = new List<SubCategoryViewer> ();
            nodatalabel.Visible = stats.SubcategoriesStats.Count == 0;
            foreach (SubCategoryStat st in stats.SubcategoriesStats) {
                SubCategoryViewer subcatviewer = new SubCategoryViewer ();
                subcatviewer.LoadStats (st, HomeName, AwayName);
                subcatViewers.Add (subcatviewer);
                vbox1.PackStart (subcatviewer);
                vbox1.PackStart (new HSeparator ());
                subcatviewer.Show ();
            }
        }