using DevExpress.Utils.Svg; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HStation.WinFrmUI { /// /// /// public class XhsSchemeTranslationChangeViewModel { /// /// /// public XhsSchemeTranslationChangeViewModel() { this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Translation; } /// /// /// public XhsSchemeTranslationChangeViewModel(HydroTranslationViewModel rhs) { this.ViewModel = rhs; this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Translation; } /// /// 名称 /// public string Name { get { var name = this.ViewModel.Name; if (!string.IsNullOrEmpty(this.ViewModel.ModelType)) { name += $"({this.ViewModel.ModelType})"; } return name; } } /// /// 材质 /// [Display(Name = "材质")] public string Material { get { return this.ViewModel.Material; } set { this.ViewModel.Material = value; } } /// /// 上游直径 /// [Display(Name = "上游直径")] public double StartDiameter { get { return this.ViewModel.StartDiameter; } set { this.ViewModel.StartDiameter = value; } } /// /// 下游直径 /// [Display(Name = "下游直径")] public double EndDiameter { get { return this.ViewModel.EndDiameter; } set { this.ViewModel.EndDiameter = value; } } /// /// 局阻系数 /// [Display(Name = "局阻系数")] public double MinorLoss { get { return this.ViewModel.MinorLoss; } set { this.ViewModel.MinorLoss = value; } } /// /// ViewMdoel /// public HydroTranslationViewModel ViewModel { get; set; } /// /// 图片 /// public SvgImage SvgImage { get; set; } /// /// 查看图片 /// public SvgImage ViewImage { get; set; } } }