Browse Source

180代配方功能补充

样式分支
Mr_z 2 years ago
parent
commit
b242d074f5
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      FryPot_DosingSystem/View/FlowProcessView.xaml
  2. +2
    -2
      FryPot_DosingSystem/ViewModel/FlowProcessSetViewModel.cs

+ 1
- 1
FryPot_DosingSystem/View/FlowProcessView.xaml View File

@@ -452,7 +452,7 @@
</StackPanel>
<StackPanel Grid.Row="3" VerticalAlignment="Center" Orientation="Horizontal" Margin="500,0,0,5">
<TextBlock Text="秘制配方搅拌时间设置:" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/>
<TextBox Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#e69519" Cursor="Hand" Text="{Binding StriTime}" FontSize="18" Width="200" TextChanged="TextBox_TextChanged_10" Height="35" VerticalContentAlignment="Center"/>
<TextBox Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#e69519" Cursor="Hand" Text="{Binding StirTime}" FontSize="18" Width="200" TextChanged="TextBox_TextChanged_10" Height="35" VerticalContentAlignment="Center"/>
<TextBlock Text="分钟" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/>
</StackPanel>
<ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Hidden">


+ 2
- 2
FryPot_DosingSystem/ViewModel/FlowProcessSetViewModel.cs View File

@@ -27,7 +27,7 @@ namespace FryPot_DosingSystem.ViewModel
public string targetWeightOffset { get { return _targetWeightOffset; } set { _targetWeightOffset = value;OnPropertyChanged(); } }
private string _targetWeightOffset="0";

private string _stirTime;
private string _stirTime="0";
/// <summary>
/// 秘制配方搅拌时间
/// </summary>
@@ -139,7 +139,7 @@ namespace FryPot_DosingSystem.ViewModel
name.FlowProcess.targetWeightOffset = 0.0F;
return;
}
if (ushort.TryParse(_stirTime.Trim(), out ushort time))
if (ushort.TryParse(StirTime.Trim(), out ushort time))
{
name.FlowProcess.StirTime = time;//秘制配方搅拌时间
}


Loading…
Cancel
Save