diff --git a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs index 4b6e716..4056362 100644 --- a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs +++ b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PenetrationForm.cs @@ -326,9 +326,10 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 { // 添加延迟确保数据稳定 - await Task.Delay(500); + //await Task.Delay(500); + //await Task.Delay(500); // 加锁防止异步并发重复执行 - await _asyncLock.WaitAsync(); + //await _asyncLock.WaitAsync(); var model = await InsertReportAsync(); if (model != null && !string.IsNullOrEmpty(model.Id2)) @@ -346,7 +347,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 { Debug.WriteLine($"读取状态失败: {ex.Message}"); } - finally { _asyncLock.Release(); } + //finally { _asyncLock.Release(); } } public async Task ReadModbusCoilAsync(ushort registerAddress, ushort readCount) { @@ -960,7 +961,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 "无氧环境/灭火 (0%)" }; uiComboBox1.Items.AddRange(options); - + uiComboBox1.SelectedIndex = 0; } @@ -1027,8 +1028,6 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 } } - - } @@ -1607,9 +1606,6 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 this.Close();//返回主页面 } - private void uiLabel23_Click(object sender, EventArgs e) - { - } } } diff --git a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PrimaryIgnitionForm.cs b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PrimaryIgnitionForm.cs index d6ed78b..fd9c89e 100644 --- a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PrimaryIgnitionForm.cs +++ b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/PrimaryIgnitionForm.cs @@ -1046,7 +1046,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 "无氧环境/灭火 (0%)" }; uiComboBox1.Items.AddRange(options); - + uiComboBox1.SelectedIndex = 0; } diff --git a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/SecondaryIgnitionForm.cs b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/SecondaryIgnitionForm.cs index 17ea3ae..03e1fba 100644 --- a/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/SecondaryIgnitionForm.cs +++ b/外科辅料和患者防护罩激光抗性测试仪/外科辅料和患者防护罩激光抗性测试仪/SecondaryIgnitionForm.cs @@ -800,7 +800,7 @@ namespace 外科辅料和患者防护罩激光抗性测试仪 "无氧环境/灭火 (0%)" }; uiComboBox1.Items.AddRange(options); - + uiComboBox1.SelectedIndex = 0; } private void InitComboBox2Pattern() {