hytos / DTI_PID / SPPIDConverter / BaseModel / Graphic.cs @ 7e56c1e5
이력 | 보기 | 이력해설 | 다운로드 (1.6 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Converter.BaseModel |
8 |
{ |
9 |
public class Graphic |
10 |
{ |
11 |
private string _UID; |
12 |
private string _NAME; |
13 |
private string _LOCATION_1; |
14 |
private string _LOCATION_2; |
15 |
private SPPIDSymbolInfo _SPPID; |
16 |
|
17 |
public string UID { get => _UID; set => _UID = value; } |
18 |
public string NAME { get => _NAME; set => _NAME = value; } |
19 |
public string LOCATION_1 |
20 |
{ |
21 |
get |
22 |
{ |
23 |
return _LOCATION_1; |
24 |
} |
25 |
set |
26 |
{ |
27 |
_LOCATION_1 = value; |
28 |
double x = 0; |
29 |
double y = 0; |
30 |
Converter.SPPID.Util.SPPIDUtil.ConvertPointBystring(_LOCATION_1, ref x, ref y); |
31 |
X1 = x; |
32 |
Y1 = y; |
33 |
} |
34 |
} |
35 |
public string LOCATION_2 |
36 |
{ |
37 |
get |
38 |
{ |
39 |
return _LOCATION_2; |
40 |
} |
41 |
set |
42 |
{ |
43 |
_LOCATION_2 = value; |
44 |
double x = 0; |
45 |
double y = 0; |
46 |
Converter.SPPID.Util.SPPIDUtil.ConvertPointBystring(_LOCATION_2, ref x, ref y); |
47 |
X2 = x; |
48 |
Y2 = y; |
49 |
} |
50 |
} |
51 |
public SPPIDSymbolInfo SPPID { get => _SPPID; set => _SPPID = value; } |
52 |
public double X1 { get; set; } |
53 |
public double X2 { get; set; } |
54 |
public double Y1 { get; set; } |
55 |
public double Y2 { get; set; } |
56 |
public SPPIDEtcLocationInfo SPPIDGraphicLocation { get; set; } |
57 |
} |
58 |
} |
59 |
|