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