예제 #1
0
 public void RecordTemp(string value)
 {
     temperature.Text = value + "°C";
     try
     {
         float v = float.Parse(value);
         for (var i = 0; i < tempEntries.Length - 1; i++)
         {
             tempEntries[i] = tempEntries[i + 1];
         }
         tempEntries[tempEntries.Length - 1] = new Microcharts.Entry(v)
         {
             Color = TemperatureColor(v)
         };
         chartView.InvalidateSurface();
     }
     catch
     {
     }
 }
예제 #2
0
 public void InvalidateChart()
 {
     chartView.InvalidateSurface();
 }