/*PID*/ private async void SendPID_Click(object sender, RoutedEventArgs e) { //Send PID coefficients to Oven SendPID.IsEnabled = false; PID hmi = (PInput.ValueFloat(), IInput.ValueFloat(), DInput.ValueFloat()); PID psoc = await Oven.SetPID(hmi); if (psoc == hmi) { POven.Text = psoc.Proportional.ToString(); IOven.Text = psoc.Integral.ToString(); DOven.Text = psoc.Derivative.ToString(); await ShowSuccess("PID updated successfully"); Settings[nameof(PID)] = psoc.ToString(); } SendPID.IsEnabled = true; }