using DevExpress.Utils.Svg;
|
using System;
|
using System.Collections.Generic;
|
using System.IO;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HStation.WinFrmUI
|
{
|
/// <summary>
|
/// SvgImageHelper
|
/// </summary>
|
public class AssetsMainSvgImageHelper
|
{
|
/// <summary>
|
/// 水池
|
/// </summary>
|
public static SvgImage Tank
|
{
|
get
|
{
|
if (_tank == null)
|
{
|
_tank = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.tank));
|
}
|
return _tank;
|
}
|
}
|
private static SvgImage _tank = null;
|
|
/// <summary>
|
/// 连接件
|
/// </summary>
|
public static SvgImage Coupling
|
{
|
get
|
{
|
if (_coupling == null)
|
{
|
_coupling = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.coupling));
|
}
|
return _coupling;
|
}
|
}
|
private static SvgImage _coupling = null;
|
|
/// <summary>
|
/// 闷头
|
/// </summary>
|
public static SvgImage Blunthead
|
{
|
get
|
{
|
if (_blunthead == null)
|
{
|
_blunthead = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.blunthead));
|
}
|
return _blunthead;
|
}
|
}
|
private static SvgImage _blunthead = null;
|
|
/// <summary>
|
/// 弯头
|
/// </summary>
|
public static SvgImage Elbow
|
{
|
get
|
{
|
if (_elbow == null)
|
{
|
_elbow = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.elbow));
|
}
|
return _elbow;
|
}
|
}
|
private static SvgImage _elbow = null;
|
|
/// <summary>
|
/// 三通
|
/// </summary>
|
public static SvgImage Threelink
|
{
|
get
|
{
|
if (_threelink == null)
|
{
|
_threelink = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.threelink));
|
}
|
return _threelink;
|
}
|
}
|
private static SvgImage _threelink = null;
|
|
/// <summary>
|
/// 四通
|
/// </summary>
|
public static SvgImage Fourlink
|
{
|
get
|
{
|
if (_fourlink == null)
|
{
|
_fourlink = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.fourlink));
|
}
|
return _fourlink;
|
}
|
}
|
private static SvgImage _fourlink = null;
|
|
/// <summary>
|
/// 扩散器
|
/// </summary>
|
public static SvgImage Emitter
|
{
|
get
|
{
|
if (_emitter == null)
|
{
|
_emitter = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.emitter));
|
}
|
return _emitter;
|
}
|
}
|
private static SvgImage _emitter = null;
|
|
/// <summary>
|
/// 喷头
|
/// </summary>
|
public static SvgImage Nozzle
|
{
|
get
|
{
|
if (_nozzle == null)
|
{
|
_nozzle = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.nozzle));
|
}
|
return _nozzle;
|
}
|
}
|
private static SvgImage _nozzle = null;
|
|
/// <summary>
|
/// 消火栓
|
/// </summary>
|
public static SvgImage Hydrant
|
{
|
get
|
{
|
if (_hydrant == null)
|
{
|
_hydrant = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.hydrant));
|
}
|
return _hydrant;
|
}
|
}
|
private static SvgImage _hydrant = null;
|
|
/// <summary>
|
/// 冷却塔
|
/// </summary>
|
public static SvgImage Cooling
|
{
|
get
|
{
|
if (_cooling == null)
|
{
|
_cooling = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.cooling));
|
}
|
return _cooling;
|
}
|
}
|
private static SvgImage _cooling = null;
|
|
/// <summary>
|
/// 水表
|
/// </summary>
|
public static SvgImage Meter
|
{
|
get
|
{
|
if (_meter == null)
|
{
|
_meter = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.meter));
|
}
|
return _meter;
|
}
|
}
|
private static SvgImage _meter = null;
|
|
/// <summary>
|
/// 仪表
|
/// </summary>
|
public static SvgImage Instrument
|
{
|
get
|
{
|
if (_instrument == null)
|
{
|
_instrument = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.instrument));
|
}
|
return _instrument;
|
}
|
}
|
private static SvgImage _instrument = null;
|
|
/// <summary>
|
/// 流量计
|
/// </summary>
|
public static SvgImage Flowmeter
|
{
|
get
|
{
|
if (_flowmeter == null)
|
{
|
_flowmeter = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.flowmeter));
|
}
|
return _flowmeter;
|
}
|
}
|
private static SvgImage _flowmeter = null;
|
|
/// <summary>
|
/// 压力表
|
/// </summary>
|
public static SvgImage Pressmeter
|
{
|
get
|
{
|
if (_pressmeter == null)
|
{
|
_pressmeter = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.pressmeter));
|
}
|
return _pressmeter;
|
}
|
}
|
private static SvgImage _pressmeter = null;
|
|
/// <summary>
|
/// 管道
|
/// </summary>
|
public static SvgImage Pipe
|
{
|
get
|
{
|
if (_pipe == null)
|
{
|
_pipe = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.pipe));
|
}
|
return _pipe;
|
}
|
}
|
private static SvgImage _pipe = null;
|
|
/// <summary>
|
/// 过渡件
|
/// </summary>
|
public static SvgImage Translation
|
{
|
get
|
{
|
if (_translation == null)
|
{
|
_translation = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.translation));
|
}
|
return _translation;
|
}
|
}
|
private static SvgImage _translation = null;
|
|
/// <summary>
|
/// 水泵
|
/// </summary>
|
public static SvgImage Pump
|
{
|
get
|
{
|
if (_pump == null)
|
{
|
_pump = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.pump));
|
}
|
return _pump;
|
}
|
}
|
private static SvgImage _pump = null;
|
|
/// <summary>
|
/// 阀门
|
/// </summary>
|
public static SvgImage Valve
|
{
|
get
|
{
|
if (_valve == null)
|
{
|
_valve = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.valve));
|
}
|
return _valve;
|
}
|
}
|
private static SvgImage _valve = null;
|
|
/// <summary>
|
/// 阻件
|
/// </summary>
|
public static SvgImage Resistance
|
{
|
get
|
{
|
if (_resistance == null)
|
{
|
_resistance = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.resistance));
|
}
|
return _resistance;
|
}
|
}
|
private static SvgImage _resistance = null;
|
|
/// <summary>
|
/// 换热器
|
/// </summary>
|
public static SvgImage Exchanger
|
{
|
get
|
{
|
if (_exchanger == null)
|
{
|
_exchanger = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.exchanger));
|
}
|
return _exchanger;
|
}
|
}
|
private static SvgImage _exchanger = null;
|
|
/// <summary>
|
/// 压缩机
|
/// </summary>
|
public static SvgImage Compressor
|
{
|
get
|
{
|
if (_compressor == null)
|
{
|
_compressor = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.compressor));
|
}
|
return _compressor;
|
}
|
}
|
private static SvgImage _compressor = null;
|
|
/// <summary>
|
/// 系数
|
/// </summary>
|
public static SvgImage Factor
|
{
|
get
|
{
|
if (_factor == null)
|
{
|
_factor = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.factor));
|
}
|
return _factor;
|
}
|
}
|
private static SvgImage _factor = null;
|
|
/// <summary>
|
/// 曲线
|
/// </summary>
|
public static SvgImage Curve
|
{
|
get
|
{
|
if (_curve == null)
|
{
|
_curve = SvgImage.FromStream(new MemoryStream(HStation.WinFrmUI.Assets.Core.Properties.Resources.curve));
|
}
|
return _curve;
|
}
|
}
|
private static SvgImage _curve = null;
|
|
}
|
}
|