lixiaojun
2024-12-20 a7c780692ab2d8072ad4cae0fecbf851c27231d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
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;
 
    }
}