void SetMotionSensitivity() { double amount = 0; double intensity = 0; if (CurrentModel == null) { return; } CurrentModel.GetMotionValues(ref amount, ref intensity); InvokeGuiThread(() => { PixelIntensitySlider.Value = intensity; PixelAmountSlider.Value = amount * 100; }); }