From 0940f31b7eba1cf6b6a8c1fca72d97cf686e79f2 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 04 七月 2025 10:43:00 +0800
Subject: [PATCH] 优化插件,完善TreeListView

---
 Plugin.TestResult/TestResultView.xaml.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Plugin.TestResult/TestResultView.xaml.cs b/Plugin.TestResult/TestResultView.xaml.cs
index b8bb7d4..4f73cfe 100644
--- a/Plugin.TestResult/TestResultView.xaml.cs
+++ b/Plugin.TestResult/TestResultView.xaml.cs
@@ -172,7 +172,6 @@
                 this.testApp.LoginOnStart = false;
                 this.testApp.Start();
                 this.modeSeq = this.engine.GetSequenceFileEx(@"C:\Program Files\National Instruments\TestStand 2020\Components\Models\TestStandModels\ParallelModel.seq");
-
             }
             catch (Exception ex)
             {
@@ -434,7 +433,7 @@
         public void SetStartFlag(int index, bool data)
         {
             if (this.SequenceContext == null) return;
-            char name = (char)(index + 65);
+            string name = tables[index].title;
             string key = $"StationState.Start_{name}";
             this.engine.Globals.SetValBoolean(key, 0, data);
             bool val = this.engine.Globals.GetValBoolean(key, 0);
@@ -479,7 +478,8 @@
 
         public void SetOvenProduct(int index, string product)
         {
-
+            string LookupStr = $"StationState.ProductModel_{tables[index].title}";
+            engine?.Globals?.SetValString(LookupStr, 1, product);
         }
     }
 }

--
Gitblit v1.9.1