From 3effbd15ec04bbc39514c6904fa71d00631c96eb Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 04 十一月 2024 01:36:42 +0800 Subject: [PATCH] 整合属性研究 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/00-core/HydroParterInfoUpdateExtensions.cs | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/00-core/HydroParterInfoUpdateExtensions.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/00-core/HydroParterInfoUpdateExtensions.cs similarity index 85% rename from WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/00-core/HydroParterInfoUpdateExtensions.cs rename to WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/00-core/HydroParterInfoUpdateExtensions.cs index 73d61b8..ee3167e 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/00-core/HydroParterInfoUpdateExtensions.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/00-core/HydroParterInfoUpdateExtensions.cs @@ -10,7 +10,7 @@ /// <summary> /// 鏇存柊灞炴�� /// </summary> - public static void UpdateProperty(this Yw.Model.HydroParterInfo rhs, List<Yw.Model.HydroParterInfo> allPaterList, HydroParterPropertyViewModel propertyViewModel) + public static void UpdateProperty(this Yw.Model.HydroParterInfo rhs, List<Yw.Model.HydroParterInfo> allPaterList, HydroParterViewModel propertyViewModel) { if (rhs == null) { @@ -33,7 +33,7 @@ //鑺傜偣 if (rhs is Yw.Model.HydroNodeInfo hydroNodeInfo) { - if (propertyViewModel is HydroNodePropertyViewModel hydroNodePropertyViewModel) + if (propertyViewModel is HydroNodeViewModel hydroNodePropertyViewModel) { } @@ -41,7 +41,7 @@ //姘存簮 if (rhs is Yw.Model.HydroSourceInfo hydroSourceInfo) { - if (propertyViewModel is HydroSourcePropertyViewModel hydroSourcePropertyViewModel) + if (propertyViewModel is HydroSourceViewModel hydroSourcePropertyViewModel) { } @@ -49,7 +49,7 @@ //姘村簱 if (rhs is Yw.Model.HydroReservoirInfo hydroReservoirInfo) { - if (propertyViewModel is HydroReservoirPropertyViewModel hydroReservoirPropertyViewModel) + if (propertyViewModel is HydroReservoirViewModel hydroReservoirPropertyViewModel) { hydroReservoirInfo.PoolElev = hydroReservoirPropertyViewModel.PoolElev; hydroReservoirInfo.UpdatePropStatus(nameof(hydroReservoirInfo.PoolElev), hydroReservoirPropertyViewModel, nameof(hydroReservoirPropertyViewModel.PoolElev)); @@ -62,7 +62,7 @@ //姘存睜 if (rhs is Yw.Model.HydroTankInfo hydroTankInfo) { - if (propertyViewModel is HydroTankPropertyViewModel hydroTankPropertyViewModel) + if (propertyViewModel is HydroTankViewModel hydroTankPropertyViewModel) { hydroTankInfo.PoolElev = hydroTankPropertyViewModel.PoolElev; hydroTankInfo.UpdatePropStatus(nameof(hydroTankInfo.PoolElev), hydroTankPropertyViewModel, nameof(hydroTankPropertyViewModel.PoolElev)); @@ -85,7 +85,7 @@ //姘寸 if (rhs is Yw.Model.HydroWaterboxInfo hydroWaterboxInfo) { - if (propertyViewModel is HydroWaterboxPropertyViewModel hydroWaterboxPropertyViewModel) + if (propertyViewModel is HydroWaterboxViewModel hydroWaterboxPropertyViewModel) { } @@ -93,7 +93,7 @@ //杩炴帴鑺傜偣 if (rhs is Yw.Model.HydroJunctionInfo hydroJunctionInfo) { - if (propertyViewModel is HydroJunctionPropertyViewModel hydroJunctionPropertyViewModel) + if (propertyViewModel is HydroJunctionViewModel hydroJunctionPropertyViewModel) { hydroJunctionInfo.Elev = hydroJunctionPropertyViewModel.Elev; hydroJunctionInfo.UpdatePropStatus(nameof(hydroJunctionInfo.Elev), hydroJunctionPropertyViewModel, nameof(hydroJunctionPropertyViewModel.Elev)); @@ -106,7 +106,7 @@ //鎵╂暎鍣� if (rhs is Yw.Model.HydroEmitterInfo hydroEmitterInfo) { - if (propertyViewModel is HydroEmitterPropertyViewModel hydroEmitterPropertyViewModel) + if (propertyViewModel is HydroEmitterViewModel hydroEmitterPropertyViewModel) { hydroEmitterInfo.Coefficient = hydroEmitterPropertyViewModel.Coefficient; hydroEmitterInfo.UpdatePropStatus(nameof(hydroEmitterInfo.Coefficient), hydroEmitterPropertyViewModel, nameof(hydroEmitterPropertyViewModel.Coefficient)); @@ -115,7 +115,7 @@ //鍠峰槾 if (rhs is Yw.Model.HydroNozzleInfo hydroNozzleInfo) { - if (propertyViewModel is HydroNozzlePropertyViewModel hydroNozzlePropertyViewModel) + if (propertyViewModel is HydroNozzleViewModel hydroNozzlePropertyViewModel) { } @@ -123,7 +123,7 @@ //娑堢伀鏍� if (rhs is Yw.Model.HydroHydrantInfo hydroHydrantInfo) { - if (propertyViewModel is HydroHydrantPropertyViewModel hydroHydrantPropertyViewModel) + if (propertyViewModel is HydroHydrantViewModel hydroHydrantPropertyViewModel) { } @@ -131,7 +131,7 @@ //杩炴帴浠� if (rhs is Yw.Model.HydroCouplingInfo hydroConnectInfo) { - if (propertyViewModel is HydroCouplingPropertyViewModel hydroCouplingPropertyViewModel) + if (propertyViewModel is HydroCouplingViewModel hydroCouplingPropertyViewModel) { hydroConnectInfo.Material = hydroCouplingPropertyViewModel.Material; hydroConnectInfo.UpdatePropStatus(nameof(hydroConnectInfo.Material), hydroCouplingPropertyViewModel, nameof(hydroCouplingPropertyViewModel.Material)); @@ -144,7 +144,7 @@ //闂峰ご if (rhs is Yw.Model.HydroBluntheadInfo hydroBluntheadInfo) { - if (propertyViewModel is HydroBluntheadPropertyViewModel hydroBluntheadPropertyViewModel) + if (propertyViewModel is HydroBluntheadViewModel hydroBluntheadPropertyViewModel) { } @@ -152,7 +152,7 @@ //寮ご if (rhs is Yw.Model.HydroElbowInfo hydroElbowInfo) { - if (propertyViewModel is HydroElbowPropertyViewModel hydroElbowPropertyViewModel) + if (propertyViewModel is HydroElbowViewModel hydroElbowPropertyViewModel) { } @@ -160,7 +160,7 @@ //涓夐�� if (rhs is Yw.Model.HydroThreelinkInfo hydroThreelinkInfo) { - if (propertyViewModel is HydroThreelinkPropertyViewModel hydroThreelinkPropertyViewModel) + if (propertyViewModel is HydroThreelinkViewModel hydroThreelinkPropertyViewModel) { } @@ -168,7 +168,7 @@ //鍥涢�� if (rhs is Yw.Model.HydroFourlinkInfo hydroFourlinkInfo) { - if (propertyViewModel is HydroFourlinkPropertyViewModel hydroFourlinkPropertyViewModel) + if (propertyViewModel is HydroFourlinkViewModel hydroFourlinkPropertyViewModel) { } @@ -176,7 +176,7 @@ //姘磋〃 if (rhs is Yw.Model.HydroMeterInfo hydroMeterInfo) { - if (propertyViewModel is HydroMeterPropertyViewModel hydroMeterPropertyViewModel) + if (propertyViewModel is HydroMeterViewModel hydroMeterPropertyViewModel) { } @@ -184,7 +184,7 @@ //娴侀噺璁� if (rhs is Yw.Model.HydroFlowmeterInfo hydroFlowmeterInfo) { - if (propertyViewModel is HydroFlowmeterPropertyViewModel hydroFlowmeterPropertyViewModel) + if (propertyViewModel is HydroFlowmeterViewModel hydroFlowmeterPropertyViewModel) { } @@ -192,7 +192,7 @@ //鍘嬪姏琛� if (rhs is Yw.Model.HydroPressmeterInfo hydroPressmeterInfo) { - if (propertyViewModel is HydroPressmeterPropertyViewModel hydroPressmeterPropertyViewModel) + if (propertyViewModel is HydroPressmeterViewModel hydroPressmeterPropertyViewModel) { } @@ -201,7 +201,7 @@ //绠℃ if (rhs is Yw.Model.HydroLinkInfo hydroLinkInfo) { - if (propertyViewModel is HydroLinkPropertyViewModel hydroLinkPropertyViewModel) + if (propertyViewModel is HydroLinkViewModel hydroLinkPropertyViewModel) { hydroLinkInfo.StartCode = hydroLinkPropertyViewModel.StartCode; hydroLinkInfo.UpdatePropStatus(nameof(hydroLinkInfo.StartCode), hydroLinkPropertyViewModel, nameof(hydroLinkPropertyViewModel.StartCode)); @@ -214,7 +214,7 @@ //绠¢亾 if (rhs is Yw.Model.HydroPipeInfo hydroPipeInfo) { - if (propertyViewModel is HydroPipePropertyViewModel hydroPipePropertyViewModel) + if (propertyViewModel is HydroPipeViewModel hydroPipePropertyViewModel) { hydroPipeInfo.Diameter = hydroPipePropertyViewModel.Diameter; hydroPipeInfo.UpdatePropStatus(nameof(hydroPipeInfo.Diameter), hydroPipePropertyViewModel, nameof(hydroPipePropertyViewModel.Diameter)); @@ -229,7 +229,7 @@ //杩囨浮浠� if (rhs is Yw.Model.HydroTranslationInfo hydroTranslationInfo) { - if (propertyViewModel is HydroTranslationPropertyViewModel hydroTranslationPropertyViewModel) + if (propertyViewModel is HydroTranslationViewModel hydroTranslationPropertyViewModel) { } @@ -237,7 +237,7 @@ //鎹㈢儹鍣� if (rhs is Yw.Model.HydroExchangerInfo hydroExchangerInfo) { - if (propertyViewModel is HydroExchangerPropertyViewModel hydroExchangerPropertyViewModel) + if (propertyViewModel is HydroExchangerViewModel hydroExchangerPropertyViewModel) { } @@ -245,7 +245,7 @@ //姘存车 if (rhs is Yw.Model.HydroPumpInfo hydroPumpInfo) { - if (propertyViewModel is HydroPumpPropertyViewModel hydroPumpPropertyViewModel) + if (propertyViewModel is HydroPumpViewModel hydroPumpPropertyViewModel) { hydroPumpInfo.RatedP = hydroPumpPropertyViewModel.RatedP; hydroPumpInfo.UpdatePropStatus(nameof(hydroPumpInfo.RatedP), hydroPumpPropertyViewModel, nameof(hydroPumpPropertyViewModel.RatedP)); @@ -270,7 +270,7 @@ //闃�闂� if (rhs is Yw.Model.HydroValveInfo hydroValveInfo) { - if (propertyViewModel is HydroValvePropertyViewModel hydroValvePropertyViewModel) + if (propertyViewModel is HydroValveViewModel hydroValvePropertyViewModel) { hydroValveInfo.Diameter = hydroValvePropertyViewModel.Diameter; hydroValveInfo.UpdatePropStatus(nameof(hydroValveInfo.Diameter), hydroValvePropertyViewModel, nameof(hydroValvePropertyViewModel.Diameter)); -- Gitblit v1.9.3