From 53e656200368a983e563550e2cc1acbc6d86b729 Mon Sep 17 00:00:00 2001
From: chr <chrry550@outlook.com>
Date: 星期三, 08 四月 2026 19:57:14 +0800
Subject: [PATCH] 完善代码

---
 OpenTap/Engine/TestPlan.cs |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/OpenTap/Engine/TestPlan.cs b/OpenTap/Engine/TestPlan.cs
index 39544d6..9abd59d 100644
--- a/OpenTap/Engine/TestPlan.cs
+++ b/OpenTap/Engine/TestPlan.cs
@@ -480,12 +480,27 @@
         }
         #endregion
 
+        private string path;
         /// <summary>
         /// Gets where this plan was last saved or loaded from. It might be null.
         /// </summary>
         [XmlIgnore]
         [AnnotationIgnore]
-        public string Path { get; internal set; }
+        public string Path
+        {
+            get => path; internal set
+            {
+                path = value;
+                VisualPath = value;
+            }
+        }
+
+        /// <summary>
+        /// 虚拟路径
+        /// </summary>
+        [XmlIgnore]
+        [AnnotationIgnore]
+        public string VisualPath { get; set; }
 
         /// <summary> The directory where the test plan is stored.</summary>
         [MetaData(macroName: "TestPlanDir")]

--
Gitblit v1.9.1