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 XhsSchemeCoolingChangeViewModel
{
///
///
///
public XhsSchemeCoolingChangeViewModel()
{
this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Cooling;
}
///
///
///
public XhsSchemeCoolingChangeViewModel(HydroCoolingViewModel rhs)
{
this.ViewModel = rhs;
this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Cooling;
}
///
/// 名称
///
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; }
}
///
/// 最小压力
///
public double LowerLimit
{
get { return this.ViewModel.LowerLimit; }
set { this.ViewModel.LowerLimit = value; }
}
///
/// ViewMdoel
///
public HydroCoolingViewModel ViewModel { get; set; }
///
/// 图片
///
public SvgImage SvgImage { get; set; }
///
/// 查看图片
///
public SvgImage ViewImage { get; set; }
}
}