Browse Source

调整。

master
yibo 7 years ago
parent
commit
07041f4f19
2 changed files with 3 additions and 3 deletions
  1. +2
    -1
      WinFormControl/UWeightControl.cs
  2. +1
    -2
      WinFormControl/Utils/SoundPalyUtil.cs

+ 2
- 1
WinFormControl/UWeightControl.cs View File

@ -203,7 +203,8 @@ namespace WinFormControl
str = "0";
this.Invoke(new Action(delegate()
{
var v = decimal.Parse(str);
decimal v = 0;
decimal.TryParse(str, out v);
lblChengZhong.Text = string.Format(format, v);
if (str != "0")
{


+ 1
- 2
WinFormControl/Utils/SoundPalyUtil.cs View File

@ -26,8 +26,7 @@ namespace WinFormControl
if (!File.Exists(filePath))
return;
player.SoundLocation = filePath;
player.Load();
player.Play();
player.PlaySync();
}
}


Loading…
Cancel
Save