From 1bf6b7a300e21e9b8996f9ebeeb55a1eccda7a02 Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期五, 20 十二月 2024 10:50:36 +0800
Subject: [PATCH] 排除bug

---
 WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/ElbowViewModel.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/ElbowViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/ElbowViewModel.cs
index c2a74fe..9efddb3 100644
--- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/ElbowViewModel.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/05-elbow/ElbowViewModel.cs
@@ -21,7 +21,7 @@
             {
                 this.Caliber = rhs.Caliber.ToString();
             }
-            if (rhs.Material == null)
+            if (rhs.Material == null || rhs.Material == string.Empty)
             {
                 this.MaterialName = "榛樿";
             }
@@ -33,7 +33,7 @@
             this.SortCode = rhs.SortCode;
             this.KeyWord = string.Join(",", rhs.KeyWord);
             this.Angle = rhs.Angle;
-            this.ElbowLengthType = rhs.ElbowLengthType;
+            this.ElbowLengthType = rhs.ElbowType;
             this.MinorLoss = rhs.MinorLoss;
         }
 
@@ -48,7 +48,7 @@
             {
                 this.Caliber = rhs.Caliber.ToString();
             }
-            if (rhs.Material == null)
+            if (rhs.Material == null || rhs.Material == string.Empty)
             {
                 this.MaterialName = "榛樿";
             }
@@ -61,7 +61,7 @@
             this.KeyWord = string.Join(",", rhs.KeyWord);
             this.SortCode = rhs.SortCode;
             this.Angle = rhs.Angle;
-            this.ElbowLengthType = rhs.ElbowLengthType;
+            this.ElbowLengthType = rhs.ElbowType;
             this.MinorLoss = rhs.MinorLoss;
         }
 
@@ -117,7 +117,7 @@
         /// </summary>
         [DisplayName("寮ご绫诲瀷")]
         [Browsable(true)]
-        public eLengthType? ElbowLengthType { get; set; }
+        public eElbowType? ElbowLengthType { get; set; }
 
         /// <summary>
         /// 瑙掑害

--
Gitblit v1.9.3