Ejemplo n.º 1
0
 private void ChartHisrotricalData(StructClass.StructTemperData structTemper)
 {
     if (structTemper.Type == "S2")
     {
         seriesPoint_1.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "S3")
     {
         seriesPoint_2.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "S4")
     {
         seriesPoint_3.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "S5")
     {
         seriesPoint_4.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "L1")
     {
         seriesLine.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "A6")
     {
         seriesArea_1.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "A7")
     {
         seriesArea_2.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
     else if (structTemper.Type == "A8")
     {
         seriesArea_3.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
     }
 }
 private void ChartHisrotricalData(StructClass.StructTemperData structTemper)
 {
     if (structTemper.Type == "S2")
     {
         s2++;
         if (s2 % percent == 0)
         {
             seriesPoint_1.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "S3")
     {
         s3++;
         if (s3 % percent == 0)
         {
             seriesPoint_2.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "S4")
     {
         s4++;
         if (s4 % percent == 0)
         {
             seriesPoint_3.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "S5")
     {
         s5++;
         if (s5 % percent == 0)
         {
             seriesPoint_4.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "L1")
     {
         l1++;
         if (l1 % percent == 0)
         {
             seriesLine.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "A6")
     {
         a6++;
         if (a6 % percent == 0)
         {
             seriesArea_1.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "A7")
     {
         a7++;
         if (a7 % percent == 0)
         {
             seriesArea_2.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
     else if (structTemper.Type == "A8")
     {
         a8++;
         if (a8 % percent == 0)
         {
             seriesArea_3.Points.AddXY(structTemper.dateTime, Convert.ToDouble(Convert.ToDecimal(structTemper.Temper) / 100));
         }
     }
 }