Forráskód Böngészése

修复强度选择滑动条值错误的Bug。

xcbosa 3 éve
szülő
commit
47a4a4bc39
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      WpfTest1/MainWindow.xaml.cs

+ 1 - 1
WpfTest1/MainWindow.xaml.cs

@@ -466,7 +466,7 @@ namespace WpfTest1
         private void sliderStrength_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
         {
             labelStrength.Content = sliderStrength.Value.ToString("0.");
-            comAgent.enqueueCommand(Com.createChangeStrongthCommand((byte)(sliderStrength.Value * 100)));
+            comAgent.enqueueCommand(Com.createChangeStrongthCommand((byte)sliderStrength.Value));
         }
 
         /// <summary>