From 4cac1b533e133fdc8b3def90a0f998820f51907a Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期三, 26 三月 2025 17:57:59 +0800
Subject: [PATCH] 优化UI,新增日志自动删除;

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

diff --git a/Plugin.TestResult/TestResultView.xaml.cs b/Plugin.TestResult/TestResultView.xaml.cs
index c1d5f03..5d452eb 100644
--- a/Plugin.TestResult/TestResultView.xaml.cs
+++ b/Plugin.TestResult/TestResultView.xaml.cs
@@ -35,7 +35,7 @@
         /// <summary>
         /// 娴嬭瘯搴忓垪鎿嶄綔鍙ユ焺
         /// </summary>
-        private SequenceContext SequenceContext = null;
+        public SequenceContext SequenceContext { get; private set; } = null;
         /// <summary>
         /// 娴嬭瘯妯″瀷搴忓垪
         /// </summary>
@@ -383,6 +383,17 @@
                     tables[ovenIndex].GetSingleCell(cellIndex).ClearInfo();
                     return;
                 }
+                if (MethodCode == 12)
+                {
+                    /// 淇濆瓨娓╁害鏂囦欢
+                    /// 
+                    strData = e.uiMsg.StringData;
+                    string[] datas = strData.Split(';');
+                    int ovenIndex = int.Parse(datas[0]);
+                    string folder = datas[1];
+                    tables[ovenIndex].SaveTempFile(folder);
+                    return;
+                }
             }
             catch (Exception ex)
             {
@@ -419,5 +430,25 @@
                 table.ClearNumber();
             }
         }
+
+        public void SetProductSource(List<string> productSource)
+        {
+            foreach (var table in tables)
+            {
+                table.SetProductSource(productSource);
+            }
+        }
+
+        public void SetCurrentProduct(string currentProduct)
+        {
+            foreach (var table in tables)
+            {
+                table.SetCurrentProduct(currentProduct);
+            }
+        }
+
+        public void SetOvenProduct(int index, string product) { 
+            
+        }
     }
 }

--
Gitblit v1.9.1