void SetChartType(TransitStats.Type type) { try { imageStats.Src = string.Format("StatsChart.aspx?type={0}", type); labelChartType.Text = type.ToString(); linkDaily.Enabled = (type != TransitStats.Type.Daily); linkHourly.Enabled = (type != TransitStats.Type.Hourly); linkMonthly.Enabled = (type != TransitStats.Type.Monthly); linkYearly.Enabled = (type != TransitStats.Type.Yearly); linkWeekly.Enabled = (type != TransitStats.Type.Weekly); } catch (Exception ex) { ReportException(ex); } }
public TransitStatsQueryOptions(TransitStats.Type type) { Type = type; }