From 9a7e74591a70bc1be9c9995b5cab4cbfafaa8996 Mon Sep 17 00:00:00 2001
From: chenn <gu.beic@qq.com>
Date: 星期二, 01 四月 2025 17:58:03 +0800
Subject: [PATCH] 圆弧直线取消注释;引用dll更改

---
 WinFrmUI/DPumpHydr.WinFrmUI.Volute/出水设计/ctrlSetOutflowParas.cs |  274 ++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 183 insertions(+), 91 deletions(-)

diff --git "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowParas.cs" "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowParas.cs"
index 45eb130..89807af 100644
--- "a/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowParas.cs"
+++ "b/WinFrmUI/DPumpHydr.WinFrmUI.Volute/\345\207\272\346\260\264\350\256\276\350\256\241/ctrlSetOutflowParas.cs"
@@ -107,6 +107,12 @@
                 return _sharp_type;
             }
         }
+        bool _isxml = false;
+        public bool Isxml
+        {
+            get { return _isxml; }
+            set { _isxml = value; }
+        }
         private void InitialOutflowStyle()
         {
             if (_parasControlCenter == null)
@@ -123,7 +129,7 @@
                     tabPage1.Controls.Add(_parasControlArcCenter);
                     return;
                 }
-                if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+                if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛)
                 {
                     metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Central-exit.png", 878, 238);
                     _parasControlArcSide.SetA_state(true);
@@ -138,7 +144,7 @@
                     _parasControlCenter.SetA_state(false);
                     tabPage1.Controls.Add(_parasControlCenter);
                     return;
-                case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴:
+                case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛:
                     metroTile鍑哄彛鍥剧墖.BackgroundImage = GlobalResource.BuildImage("Side-exit-curve.png", 878, 238);
                     _parasControlCurve.SetA_state(true);
                     tabPage1.Controls.Add(_parasControlCurve);
@@ -158,7 +164,8 @@
         public int InitialParas(
             ViewModel.HdrBaseInfo hdrBaseInfo,
             ViewModel.GeomBaseInfo geomBaseInfo,
-            ViewModel.SectionBundleInfo sectionBundleInfo)
+            ViewModel.SectionBundleInfo sectionBundleInfo,
+            ViewModel.OutflowParas  outflowParas)
         {
             if (IsSameBaseParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo))
             {//鍒ゆ柇鏄惁淇敼浜�
@@ -168,84 +175,23 @@
             this._geomBaseInfo = geomBaseInfo;
             this._sectionBundleInfo = sectionBundleInfo;
 
-            //鍑哄彛鐩村緞鏍囧噯鍖�
-            double outer_dia = 4.5 * Math.Pow(hdrBaseInfo.Q / 3600 / hdrBaseInfo.n, 1 / 3.0) * 1000;
-            //渚ч潰鏇茬嚎
-            var outflowParas3 = new OutflowParas();
-            outflowParas3.Offset = ((int)((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5;
-            outflowParas3.H1 = 5;
-            outflowParas3.H2 = 5;
-            outflowParas3.Dia = GetStdDia(outer_dia);
-            double height3 = 5 * (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.5 + outflowParas3.Dia / 2) / 5 + 1);
-            outflowParas3.Heigh = height3;
-            outflowParas3.Septalradius = 2;
-            _parasControlCurve.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlCurve.IsInvokeRefreshShapeAble = false;
-            _parasControlCurve.SetBindingData(outflowParas3);
-            _parasControlCurve.IsInvokeRefreshShapeAble = true;
-            //涓績鍑哄彛
-            var outflowParas1 = new OutflowParas();
-            outflowParas1.Offset = 0;
-            outflowParas1.H1 = 5;
-            outflowParas1.H2 = 5;
-            outflowParas1.Dia = GetStdDia(outer_dia);
-            double height1 = 5 * (int)((((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.4141 + outflowParas1.Dia / 2) / 5) + 1);
-            outflowParas1.Heigh = height1;
-            outflowParas1.Septalradius = 2;
-            _parasControlCenter.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlCenter.IsInvokeRefreshShapeAble = false;
-            _parasControlCenter.SetBindingData(outflowParas1);
-            _parasControlCenter.IsInvokeRefreshShapeAble = true;
-
-            //渚ч潰鐩寸嚎
-            var outflowParas2 = new OutflowParas();
-            outflowParas2.Offset = (int)((geomBaseInfo.D3 + sectionBundleInfo.H[8]) / 2 + 0.5);
-            outflowParas2.H1 = 5;
-            outflowParas2.H2 = 5;
-            outflowParas2.Dia = GetStdDia(outer_dia);
-            double height2 = 5 * (int)(((outflowParas2.Dia - Math.Sqrt(4 * sectionBundleInfo.Area[8] / Math.PI)) / (2 * Math.Tan(4 * Math.PI / 180))) / 5 + 0.5);
-            if(height2 < geomBaseInfo.D3/ 2)
+            if(outflowParas != null)
             {
-                height2 = geomBaseInfo.D3 * 0.75;
+                _sharp_type = outflowParas.ShapeStyle;
+                _link_type = outflowParas.LinkStyle;
             }
-            outflowParas2.Heigh = height2;
-            outflowParas2.Septalradius = 3;
-            _parasControlLine.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlLine.IsInvokeRefreshShapeAble = false;
-            _parasControlLine.SetBindingData(outflowParas2);
-            _parasControlLine.IsInvokeRefreshShapeAble = true;
+            //
+            InitialCtrlDefaultParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo, outflowParas);
 
-            //鍦嗗姬涓績
-            var outflowParas4 = new OutflowParas();
-            outflowParas4.Offset = 0;
-            outflowParas4.H1 = 5;
-            outflowParas4.H2 = 5;
-            outflowParas4.Dia = GetStdDia(outer_dia);
-            double height4 = 5 * (int)((((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.4141 + outflowParas4.Dia / 2) / 5) + 1);
-            outflowParas4.Heigh = height4;
-            outflowParas4.Septalradius = 3;
-            outflowParas4.R1 = (int)((outflowParas4.Dia * 11 / 10 / 10) + 1) * 10;
-            outflowParas4.R2 = (int)(outflowParas4.Dia * 3 / 4 / 10) * 10;
-            _parasControlArcCenter.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlArcCenter.IsInvokeRefreshShapeAble = false;
-            _parasControlArcCenter.SetBindingData(outflowParas4);
-            _parasControlArcCenter.IsInvokeRefreshShapeAble = true;
-
-            //鍦嗗姬渚ч潰
-            var outflowParas5 = new OutflowParas();
-            outflowParas5.Offset = ((int)((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5;
-            outflowParas5.H1 = 5;
-            outflowParas5.H2 = 5;
-            outflowParas5.Dia = GetStdDia(outer_dia);
-            double height5 = 5 * (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.5 + outflowParas3.Dia / 2) / 5 + 1);
-            outflowParas5.Heigh = height5;
-            outflowParas5.Septalradius = 3;
-            outflowParas5.R1 = (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 2.0 / 10) + 1) * 10; ;
-            outflowParas5.R2 = outflowParas5.CalR2(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlArcSide.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
-            _parasControlArcSide.IsInvokeRefreshShapeAble = false;
-            _parasControlArcSide.SetBindingData(outflowParas5);
-            _parasControlArcSide.IsInvokeRefreshShapeAble = true;
+     
+            if(_link_type == eOutflowLinkStyle.鏇茬嚎)
+            {
+                checkBox鍦嗗姬杩炴帴.Checked = false;
+            }
+            else
+            {
+                checkBox鍦嗗姬杩炴帴.Checked = true;
+            }
 
             if (_sharp_type == eOutflowShapeStyle.鏈煡)
             {
@@ -254,12 +200,145 @@
             }
             else
             {
+                comboBoxType.SelectedIndex = (int)_sharp_type;
+                if (_isxml)
+                {
+                    InitialOutflowStyle();
+                    _isxml = false;
+
+                }
                 InitialOutflowStyle();
 
-                RefreshModel();
+                    RefreshModel();
             }
 
             return 1;
+        }
+
+        private void InitialCtrlDefaultParas(
+            ViewModel.HdrBaseInfo hdrBaseInfo,
+            ViewModel.GeomBaseInfo geomBaseInfo,
+            ViewModel.SectionBundleInfo sectionBundleInfo,
+            ViewModel.OutflowParas outflowParas)
+        {
+            //鍑哄彛鐩村緞鏍囧噯鍖�
+            double outer_dia = 4.5 * Math.Pow(hdrBaseInfo.Q / 3600 / hdrBaseInfo.n, 1 / 3.0) * 1000;
+            //渚ч潰鏇茬嚎
+            OutflowParas outflowParas渚ч潰鏇茬嚎 = null;
+            if(outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.渚ч潰鍑哄彛)
+            {
+                outflowParas渚ч潰鏇茬嚎 = outflowParas;
+            }
+            else
+            {
+                outflowParas渚ч潰鏇茬嚎 = new OutflowParas();
+                outflowParas渚ч潰鏇茬嚎.Offset = ((int)((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5;
+                outflowParas渚ч潰鏇茬嚎.H1 = 5;
+                outflowParas渚ч潰鏇茬嚎.H2 = 5;
+                outflowParas渚ч潰鏇茬嚎.Dia = GetStdDia(outer_dia);
+                double height3 = 5 * (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.5 + outflowParas渚ч潰鏇茬嚎.Dia / 2) / 5 + 1);
+                outflowParas渚ч潰鏇茬嚎.Heigh = height3;
+                outflowParas渚ч潰鏇茬嚎.Septalradius = 2;
+            }
+            _parasControlCurve.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            _parasControlCurve.IsInvokeRefreshShapeAble = false;
+            _parasControlCurve.SetBindingData(outflowParas渚ч潰鏇茬嚎);
+            _parasControlCurve.IsInvokeRefreshShapeAble = true;
+            //涓績鍑哄彛
+            OutflowParas outflowParas涓績鍑哄彛 = null;
+            if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.涓績鍑哄彛 && outflowParas.LinkStyle == eOutflowLinkStyle.鏇茬嚎)
+            {
+                outflowParas涓績鍑哄彛 = outflowParas;
+            }
+            else
+            {
+                outflowParas涓績鍑哄彛 = new OutflowParas();
+                outflowParas涓績鍑哄彛.Offset = 0;
+                outflowParas涓績鍑哄彛.H1 = 5;
+                outflowParas涓績鍑哄彛.H2 = 5;
+                outflowParas涓績鍑哄彛.Dia = GetStdDia(outer_dia);
+                double height1 = 5 * (int)((((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.4141 + outflowParas涓績鍑哄彛.Dia / 2) / 5) + 1);
+                outflowParas涓績鍑哄彛.Heigh = height1;
+                outflowParas涓績鍑哄彛.Septalradius = 2;
+            }
+            _parasControlCenter.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            _parasControlCenter.IsInvokeRefreshShapeAble = false;
+            _parasControlCenter.SetBindingData(outflowParas涓績鍑哄彛);
+            _parasControlCenter.IsInvokeRefreshShapeAble = true;
+
+            //渚ч潰鐩寸嚎
+            OutflowParas outflowParas渚ч潰鐩寸嚎 = null;
+            if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴 && outflowParas.LinkStyle == eOutflowLinkStyle.鏇茬嚎)
+            {
+                outflowParas渚ч潰鐩寸嚎 = outflowParas;
+            }
+            else
+            {
+                outflowParas渚ч潰鐩寸嚎 = new OutflowParas();
+                outflowParas渚ч潰鐩寸嚎.Offset = (int)((geomBaseInfo.D3 + sectionBundleInfo.H[8]) / 2 + 0.5);
+                outflowParas渚ч潰鐩寸嚎.H1 = 5;
+                outflowParas渚ч潰鐩寸嚎.H2 = 5;
+                outflowParas渚ч潰鐩寸嚎.Dia = GetStdDia(outer_dia);
+                double height2 = 5 * (int)(((outflowParas渚ч潰鐩寸嚎.Dia - Math.Sqrt(4 * sectionBundleInfo.Area[8] / Math.PI)) / (2 * Math.Tan(4 * Math.PI / 180))) / 5 + 0.5);
+                if (height2 < geomBaseInfo.D3 / 2)
+                {
+                    height2 = geomBaseInfo.D3 * 0.75;
+                }
+                outflowParas渚ч潰鐩寸嚎.Heigh = height2;
+                outflowParas渚ч潰鐩寸嚎.Septalradius = 3;
+            }
+            _parasControlLine.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            _parasControlLine.IsInvokeRefreshShapeAble = false;
+            _parasControlLine.SetBindingData(outflowParas渚ч潰鐩寸嚎);
+            _parasControlLine.IsInvokeRefreshShapeAble = true;
+
+            //鍦嗗姬涓績
+            OutflowParas outflowParas鍦嗗姬涓績 = null;
+            if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.涓績鍑哄彛 && outflowParas.LinkStyle == eOutflowLinkStyle.鐩寸嚎鍦嗗姬)
+            {
+                outflowParas鍦嗗姬涓績 = outflowParas;
+            }
+            else
+            {
+                outflowParas鍦嗗姬涓績 = new OutflowParas();
+                outflowParas鍦嗗姬涓績.Offset = 0;
+                outflowParas鍦嗗姬涓績.H1 = 5;
+                outflowParas鍦嗗姬涓績.H2 = 5;
+                outflowParas鍦嗗姬涓績.Dia = GetStdDia(outer_dia);
+                double height4 = 5 * (int)((((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.4141 + outflowParas鍦嗗姬涓績.Dia / 2) / 5) + 1);
+                outflowParas鍦嗗姬涓績.Heigh = height4;
+                outflowParas鍦嗗姬涓績.Septalradius = 3;
+                outflowParas鍦嗗姬涓績.R1 = (int)((outflowParas鍦嗗姬涓績.Dia * 11 / 10 / 10) + 1) * 10;
+                outflowParas鍦嗗姬涓績.R2 = (int)(outflowParas鍦嗗姬涓績.Dia * 3 / 4 / 10) * 10;
+            }
+            _parasControlArcCenter.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            _parasControlArcCenter.IsInvokeRefreshShapeAble = false;
+            _parasControlArcCenter.SetBindingData(outflowParas鍦嗗姬涓績);
+            _parasControlArcCenter.IsInvokeRefreshShapeAble = true;
+
+            //鍦嗗姬渚ч潰
+            OutflowParas outflowParas鍦嗗姬渚ч潰 = null;
+            if (outflowParas != null && outflowParas.ShapeStyle == eOutflowShapeStyle.渚ч潰鍑哄彛 && outflowParas.LinkStyle == eOutflowLinkStyle.鐩寸嚎鍦嗗姬)
+            {
+                outflowParas鍦嗗姬渚ч潰 = outflowParas;
+            }
+            else
+            {
+                outflowParas鍦嗗姬渚ч潰 = new OutflowParas();
+                outflowParas鍦嗗姬渚ч潰.Offset = ((int)((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5;
+                outflowParas鍦嗗姬渚ч潰.H1 = 5;
+                outflowParas鍦嗗姬渚ч潰.H2 = 5;
+                outflowParas鍦嗗姬渚ч潰.Dia = GetStdDia(outer_dia);
+                double height5 = 5 * (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8] / 2) * 1.5 + outflowParas渚ч潰鏇茬嚎.Dia / 2) / 5 + 1);
+                outflowParas鍦嗗姬渚ч潰.Heigh = height5;
+                outflowParas鍦嗗姬渚ч潰.Septalradius = 3;
+                outflowParas鍦嗗姬渚ч潰.R1 = (int)(((geomBaseInfo.D3 / 2 + sectionBundleInfo.H[8]) * 2.0 / 10) + 1) * 10; ;
+                outflowParas鍦嗗姬渚ч潰.R2 = outflowParas鍦嗗姬渚ч潰.CalR2(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            }
+            _parasControlArcSide.InitialParas(hdrBaseInfo, geomBaseInfo, sectionBundleInfo);
+            _parasControlArcSide.IsInvokeRefreshShapeAble = false;
+            _parasControlArcSide.SetBindingData(outflowParas鍦嗗姬渚ч潰);
+            _parasControlArcSide.IsInvokeRefreshShapeAble = true;
         }
 
         private bool IsSameBaseParas(
@@ -372,7 +451,7 @@
                         return null;
                     _outflowParas = _parasControlArcCenter.GetBindingData(out error);
                 }
-                if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+                if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛)
                 {
                     if (_parasControlArcSide == null)
                         return null;
@@ -388,7 +467,7 @@
                             return null;
                         _outflowParas = _parasControlCenter.GetBindingData(out error);
                         break;
-                    case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴:
+                    case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛:
                         _outflowParas = _parasControlCurve.GetBindingData(out error);
                         break;
                     case DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴:
@@ -430,7 +509,7 @@
             {
                 paras2.Offset = (int)((_geomBaseInfo.D3 + _sectionBundleInfo.H[8]) / 2 + 0.5);
             }
-            else if (paras3.ShapeStyle == eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+            else if (paras3.ShapeStyle == eOutflowShapeStyle.渚ч潰鍑哄彛)
             {
                 paras3.Offset = (int)(((_geomBaseInfo.D3 / 2 + _sectionBundleInfo.H[8]) * 1.6 / 3 / 5) + 1) * 5;
             }
@@ -444,7 +523,7 @@
             {
                 comboBoxType.SelectedIndex = 0;
             }
-            else if (_sharp_type == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+            else if (_sharp_type == DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛)
             {
                 comboBoxType.SelectedIndex = 1;
             }
@@ -504,6 +583,10 @@
         private void RefreshModel()
         {
             string error;
+            if(OnRefreshShape3D == null)
+            {
+                return;
+            }
             var resp = OnRefreshShape3D(GetBindingData(out error));
             if (resp != null)
             {
@@ -513,7 +596,7 @@
                     {
                         _parasControlArcCenter.SetBindingData(resp);
                     }
-                    else if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+                    else if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛)
                     {
                         _parasControlArcSide.SetBindingData(resp);
                     }
@@ -525,7 +608,7 @@
                     {
                         _parasControlLine.SetBindingData(resp);
                     }
-                    else if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴)
+                    else if (_sharp_type == eOutflowShapeStyle.渚ч潰鍑哄彛)
                     {
                         _parasControlCurve.SetBindingData(resp);
                     }
@@ -564,9 +647,9 @@
             }
             else if (comboBoxType.SelectedIndex == 1)
             {
-                _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鏇茬嚎杩炴帴;
-                checkBox鍦嗗姬杩炴帴.Enabled = false;
-                checkBox鍦嗗姬杩炴帴.Visible = false;
+                _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛;
+                checkBox鍦嗗姬杩炴帴.Enabled = true;
+                checkBox鍦嗗姬杩炴帴.Visible = true;
                 _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
                 if (checkBox鍦嗗姬杩炴帴.Checked)
                 {
@@ -576,7 +659,7 @@
                 {
                     _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
                 }
-              }
+            }
             else if (comboBoxType.SelectedIndex == 2)
             {
                 _sharp_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowShapeStyle.渚ч潰鍑哄彛_鐩寸嚎杩炴帴;
@@ -584,10 +667,14 @@
                 checkBox鍦嗗姬杩炴帴.Visible = false;
                 _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鏇茬嚎;
             }
-
+            if (_isxml)
+            {
+                InitialOutflowStyle();
+                return;
+            }
             InitialOutflowStyle();
 
-            RefreshModel();
+                RefreshModel();
         }
 
         private void btnNextStep_Click(object sender, EventArgs e)
@@ -605,6 +692,11 @@
             {
                 _link_type = DPumpHydr.WinFrmUI.Volute.ViewModel.eOutflowLinkStyle.鐩寸嚎鍦嗗姬;
             }
+            if (_isxml)
+            {
+                InitialOutflowStyle();
+                return;
+            }
 
             InitialOutflowStyle();
 

--
Gitblit v1.9.3