void AddSubcategory(SubCategoryStat sstats, EventTypeStats parent) { foreach (PercentualStat ostats in sstats.OptionStats) { StatsWidget w = new StatsWidget(ostats, parent, sstats, subcatsMaxSize); subcats.Add(w); cstatsbox.PackStart(w, false, true, 0); } }
void AddCategory(EventTypeStats cstats) { Widget w = new StatsWidget (cstats, null, null, catsMaxSize); cats.Add (w); cstatsbox.PackStart (w, false, true, 0); foreach (SubCategoryStat stats in cstats.SubcategoriesStats) { AddSubcategory (stats, cstats); } cstatsbox.PackStart (new HSeparator (), false, false, 0); }
void AddCategory(EventTypeStats cstats) { Widget w = new StatsWidget(cstats, null, null, catsMaxSize); cats.Add(w); cstatsbox.PackStart(w, false, true, 0); foreach (SubCategoryStat stats in cstats.SubcategoriesStats) { AddSubcategory(stats, cstats); } cstatsbox.PackStart(new HSeparator(), false, false, 0); }
void AddSubcategory(SubCategoryStat sstats, EventTypeStats parent) { foreach (PercentualStat ostats in sstats.OptionStats) { StatsWidget w = new StatsWidget (ostats, parent, sstats, subcatsMaxSize); subcats.Add (w); cstatsbox.PackStart (w, false, true, 0); } }