using DevExpress.Utils.Svg; namespace HStation.WinFrmUI { /// /// /// public class XhsSchemeHydrantChangeViewModel { /// /// /// public XhsSchemeHydrantChangeViewModel() { this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Hydrant; } /// /// /// public XhsSchemeHydrantChangeViewModel(HydroHydrantViewModel rhs) { this.ViewModel = rhs; this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Hydrant; } /// /// 名称 /// public string Name { get { var name = this.ViewModel.Name; if (!string.IsNullOrEmpty(this.ViewModel.ModelType)) { name += $"({this.ViewModel.ModelType})"; } return name; } } /// /// 材质 /// public string Material { get { return this.ViewModel.Material; } set { this.ViewModel.Material = value; } } /// /// 口径 /// public double Caliber { get { return this.ViewModel.Caliber; } set { this.ViewModel.Caliber = value; } } /// /// 流量系数 /// public double Coefficient { get { return this.ViewModel.Coefficient; } set { this.ViewModel.Coefficient = value; } } /// /// ViewMdoel /// public HydroHydrantViewModel ViewModel { get; set; } /// /// 图片 /// public SvgImage SvgImage { get; set; } /// /// 查看图片 /// public SvgImage ViewImage { get; set; } } }