private void CurrentTempTextBox_TextChanged(object sender, TextChangedEventArgs e) { //TODO check when the value is below minimal ambient temperature if (_isChanging) { return; } _isChanging = true; GUIChecks.ReplaceDot(sender, e); if (!GUIChecks.TryGetValue(CurrentTempTextBox, out double txtBoxValue, false)) { _isChanging = false; return; } CurrentTempSlider.Value = txtBoxValue; _bivalentGraph.DrawCurrentHeatLoss(BivalentPointChart, txtBoxValue); CalculateUtilization(); _isChanging = false; }
private void TextBoxOnChange(object sender, TextChangedEventArgs e) { GUIChecks.ReplaceDot(sender, e); }