private void Model_PCRCyclerTempChanged(double temperature) { graphTemps.Add(new TemperaturePoint(temperature, ++graphTempsCount)); pcrplotter.Dispatcher.Invoke( (Action)(() => { graphTemps.Add(new TemperaturePoint(temperature, ++graphTempsCount)); } ) ); }
private void Model_PCRCyclerTempChanged(double temperature, double power, bool controlling, bool transitioning) { plotter.Dispatcher.Invoke( (Action)(() => { graphTemps.Add(new TemperaturePoint(temperature, ++graphTempsCount)); } ) ); }