修改操作页面开始添加从逻辑

This commit is contained in:
sc committed 2025-08-03 23:57:04 +08:00
commit b6ce460d18
5 files changed
+470 -41

No files matched your search

+9 -2
View File
@@ -49,14 +49,21 @@ namespace DyeingComputer.Windows
disTimer.Tick += DisTimer_1S;
disTimer.Start();//计时开始
}
void DisTimer_1S(object sender, EventArgs e)
void DisTimer_1S(object sender, EventArgs e)
{
TimeSpan timeSpan = DateTime.Now - times;
TIME_.Text = timeSpan.ToString(@"hh\:mm\:ss");
if (timeSpan>timeSpan5) Muffling_.IsEnabled=true;//5秒后允许禁英
if (timeSpan > timeSpan5) Muffling_.IsEnabled = true;//5秒后允许禁英
INF_DATA.Text = Inf_DAT;
if (MainWindowViewModel.Selet_dtd("2004"))
{
MainWindowViewModel.UserCall_OK = true;
MainWindowViewModel.STEP_TIME = 0;
MainWindowViewModel.Alert_bell = false;
this.Close(); //关闭窗
}
}
private void YES_Click(object sender, RoutedEventArgs e)//确认
+2 -2
View File
@@ -32,8 +32,8 @@
<TextBox x:Name="P5" HorizontalAlignment="Right" Height="30" Margin="0,260,10,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="230" MaxLines="1" ClipToBounds="True"
Text="0" PreviewTextInput="Tb_KeyP5" InputMethod.IsInputMethodEnabled="False" FontSize="20" HorizontalContentAlignment="Right" Visibility="Hidden" />
<Button Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
<Button Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
<Button x:Name="yes" Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/>
<Button x:Name="no" Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/>
</Grid>
</Window>