暂时提交,等客户那边测试

This commit is contained in:
xyy
2026-03-11 19:11:06 +08:00
parent 84fae8c87c
commit fb82101706
5 changed files with 351 additions and 358 deletions

View File

@@ -14,6 +14,21 @@ namespace PLCDataMonitor
InitializeComponent();
}
// 定义暂停/继续事件
public event EventHandler PauseRequested;
public event EventHandler ResumeRequested;
private void PauseButton_Click(object sender, RoutedEventArgs e)
{
PauseRequested?.Invoke(this, EventArgs.Empty);
}
private void ResumeButton_Click(object sender, RoutedEventArgs e)
{
ResumeRequested?.Invoke(this, EventArgs.Empty);
}
// 更新数据显示
public void UpdateData(string pressure1, string pressure2, string friction1, string friction2, int count1, int count2, string t1, string t2, string Distince)
{