private void timer_Tick(object sender, EventArgs e) { if (Properties.Config.Default.Type == 'V') { val = Measure.GetVoltage(); SetVoltage(val); fp.AddPoint(DateTime.Now, val); } else { val = Measure.GetTemperature(); fp.AddPoint(DateTime.Now, val); SetTemperature((int)val); } UpdateRelativeError(); }
private void timer_Tick(object sender, EventArgs e) { val = Measure.GetVoltage(); fp.AddPoint(DateTime.Now, val); }