Beispiel #1
0
 void InitChart()
 {
     using (DbConnection conn = GetDBConnection())
     {
         conn.Open();
         ChartDisplayType type = this.ChartType;
         if (type == ChartDisplayType.FeatureUsageByFeature)
         {
             InitChart_FeatureUsageByFeature(conn, worker);
         }
         else if (type == ChartDisplayType.FeatureUsageByDay)
         {
             InitChart_FeatureUsageByDay(conn, worker);
         }
         else if (type == ChartDisplayType.SysProfileOS)
         {
             InitChart_SysProfileOS(conn, worker);
         }
         else if (type == ChartDisplayType.AppRunsWithVersion)
         {
             InitChart_AppRunsWithVersion(conn, worker);
         }
         else if (type == ChartDisplayType.AppRunsWithoutVersion)
         {
             InitChart_AppRunsWithoutVersion(conn, worker);
         }
         else if (type == ChartDisplayType.AppRunsByDay)
         {
             InitChart_AppRunsByDay(conn, worker);
         }
         else if (type == ChartDisplayType.SysProfileCLR)
         {
             InitChart_SysProfileCLR(conn, worker);
         }
     }
 }
Beispiel #2
0
 protected void lnkSysProfileCLR_Click(object sender, EventArgs e)
 {
     ChartType = ChartDisplayType.SysProfileCLR;
     InitChart();
 }
Beispiel #3
0
 protected void lnkAppRunsWithoutVersion_Click(object sender, EventArgs e)
 {
     ChartType = ChartDisplayType.AppRunsWithoutVersion;
     InitChart();
 }
Beispiel #4
0
 protected void lnkAppRunsByDay_Click(object sender, EventArgs e)
 {
     ChartType = ChartDisplayType.AppRunsByDay;
     InitChart();
 }
Beispiel #5
0
 protected void lnkFeatureUsageByDay_Click(object sender, EventArgs e)
 {
     ChartType = ChartDisplayType.FeatureUsageByDay;
     InitChart();
 }