/// <summary>Generate a page full of reports for a league. If no ReportTemplates, use a default set of reports.</summary> public static ZoomReports OverviewReports(Holder holder, bool includeSecret) { ZoomReports reports = new ZoomReports(holder.League.Title); ReportTemplates reportTemplates; if (holder.ReportTemplates == null || holder.ReportTemplates.Count == 0) { reportTemplates = new ReportTemplates(); reportTemplates.AddDefaults(holder.League); } else { reportTemplates = holder.ReportTemplates; } foreach (ReportTemplate rt in reportTemplates) { reports.Add(Report(holder.League, includeSecret, rt)); } reports.Add(new ZoomHtmlInclusion("</div><br/><a href=\"../now.html\">Now Playing</a><br/><a href=\"fixture.html\">Fixture</a><br/><a href=\"../index.html\">Index</a><div>")); return(reports); }
public Holder() { ReportTemplates = new ReportTemplates(); Watcher = new FileSystemWatcher(); Watcher.NotifyFilter = NotifyFilters.LastWrite; // | NotifyFilters.CreationTime | NotifyFilters.Size; Watcher.Changed += new FileSystemEventHandler(OnFileChanged); Fixture = new Fixture(); }
public Holder() { ReportTemplates = new ReportTemplates(); Fixture = new Fixture(); }