@@ -452,7 +452,7 @@ | |||||
</StackPanel> | </StackPanel> | ||||
<StackPanel Grid.Row="3" VerticalAlignment="Center" Orientation="Horizontal" Margin="500,0,0,5"> | <StackPanel Grid.Row="3" VerticalAlignment="Center" Orientation="Horizontal" Margin="500,0,0,5"> | ||||
<TextBlock Text="秘制配方搅拌时间设置:" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/> | <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"/> | <TextBlock Text="分钟" FontSize="20" Foreground="#FF2AB2E7" VerticalAlignment="Center"/> | ||||
</StackPanel> | </StackPanel> | ||||
<ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Hidden"> | <ScrollViewer Grid.Row="4" VerticalScrollBarVisibility="Hidden"> | ||||
@@ -27,7 +27,7 @@ namespace FryPot_DosingSystem.ViewModel | |||||
public string targetWeightOffset { get { return _targetWeightOffset; } set { _targetWeightOffset = value;OnPropertyChanged(); } } | public string targetWeightOffset { get { return _targetWeightOffset; } set { _targetWeightOffset = value;OnPropertyChanged(); } } | ||||
private string _targetWeightOffset="0"; | private string _targetWeightOffset="0"; | ||||
private string _stirTime; | |||||
private string _stirTime="0"; | |||||
/// <summary> | /// <summary> | ||||
/// 秘制配方搅拌时间 | /// 秘制配方搅拌时间 | ||||
/// </summary> | /// </summary> | ||||
@@ -139,7 +139,7 @@ namespace FryPot_DosingSystem.ViewModel | |||||
name.FlowProcess.targetWeightOffset = 0.0F; | name.FlowProcess.targetWeightOffset = 0.0F; | ||||
return; | return; | ||||
} | } | ||||
if (ushort.TryParse(_stirTime.Trim(), out ushort time)) | |||||
if (ushort.TryParse(StirTime.Trim(), out ushort time)) | |||||
{ | { | ||||
name.FlowProcess.StirTime = time;//秘制配方搅拌时间 | name.FlowProcess.StirTime = time;//秘制配方搅拌时间 | ||||
} | } | ||||