This commit is contained in:
xyy
2026-06-16 17:48:24 +08:00
parent 2dadfe3861
commit afef4f5cc6
2 changed files with 22 additions and 3 deletions

View File

@@ -28,22 +28,39 @@ namespace AciTester.Models
[ObservableProperty] [ObservableProperty]
private int acStartupCountdown; // D50 private int acStartupCountdown; // D50
// 除霜温度设置 - 最大值 30
private float _defrostTempSet; private float _defrostTempSet;
public float DefrostTempSet public float DefrostTempSet
{ {
get => _defrostTempSet; get => _defrostTempSet;
set => SetProperty(ref _defrostTempSet, value); set
{
if (value > 30) value = 30;
if (value < 0) value = 0;
SetProperty(ref _defrostTempSet, value);
}
} }
// 除霜时间设置 - 最大值 180 (秒)
private int _defrostTimeSet; private int _defrostTimeSet;
public int DefrostTimeSet public int DefrostTimeSet
{ {
get => _defrostTimeSet; get => _defrostTimeSet;
set => SetProperty(ref _defrostTimeSet, value); set
{
if (value > 180) value = 180;
if (value < 0) value = 0;
SetProperty(ref _defrostTimeSet, value);
}
} // D302 } // D302
[ObservableProperty] [ObservableProperty]
private int defrostMinute; // D42 private int defrostMinute; // D42

View File

@@ -185,10 +185,12 @@
<StackPanel Orientation="Horizontal" Margin="0,8"> <StackPanel Orientation="Horizontal" Margin="0,8">
<TextBlock Text="除霜温度设置(℃)" Width="130" FontSize="14" VerticalAlignment="Center"/> <TextBlock Text="除霜温度设置(℃)" Width="130" FontSize="14" VerticalAlignment="Center"/>
<TextBox Text="{Binding RealTime.DefrostTempSet, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" Width="100"/> <TextBox Text="{Binding RealTime.DefrostTempSet, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" Width="100"/>
<TextBlock Text="(≤30)" FontSize="11" Foreground="Gray" Margin="5,0,0,0" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,8"> <StackPanel Orientation="Horizontal" Margin="0,8">
<TextBlock Text="除霜时间设置(秒)" Width="130" FontSize="14" VerticalAlignment="Center"/> <TextBlock Text="除霜时间设置(秒)" Width="130" FontSize="14" VerticalAlignment="Center"/>
<TextBox Text="{Binding RealTime.DefrostTimeSet, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" Width="100"/> <TextBox Text="{Binding RealTime.DefrostTimeSet, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" Width="100"/>
<TextBlock Text="(≤180)" FontSize="11" Foreground="Gray" Margin="5,0,0,0" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,8"> <StackPanel Orientation="Horizontal" Margin="0,8">
<TextBlock Text="除霜计时" Width="130" FontSize="14" VerticalAlignment="Center"/> <TextBlock Text="除霜计时" Width="130" FontSize="14" VerticalAlignment="Center"/>