| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using static Yw.WinFrmUI.Q3D.MapViewEnum; |
| | | using static Yw.WinFrmUI.Q3d.MapViewEnum; |
| | | |
| | | namespace Yw.WinFrmUI.Q3D |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | |
| | | public static class Global |
| | |
| | | return new Point((int)p.X, (int)p.Y); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public static class GlobalExtension |
| | | { |
| | |
| | | { |
| | | case MapObjectType.全部: return null; |
| | | case MapObjectType.节点: return typeof(JunctionViewModel); |
| | | case MapObjectType.水表:return typeof(MeterViewModel); |
| | | case MapObjectType.水表: return typeof(MeterViewModel); |
| | | case MapObjectType.水库: return typeof(ReservoirViewModel); |
| | | case MapObjectType.水池: return typeof(TankViewModel); |
| | | case MapObjectType.喷头: return typeof(NozzleViewModel); |
| | | case MapObjectType.管线: return typeof(PipeViewModel); |
| | | case MapObjectType.阀门: return typeof(ValveViewModel); |
| | | |
| | | |
| | | case MapObjectType.水泵: return typeof(PumpViewModel); |
| | | |
| | | |
| | | default: return null; |
| | | } |
| | | |