개정판 0d8062b2
dev issue #000 : move file
Change-Id: Icf2076ae45b5e6248ee99116a265ef98d42eebc9
DTI_PID/BaseModel/BaseModel.csproj | ||
---|---|---|
78 | 78 |
<Reference Include="System.Xml" /> |
79 | 79 |
</ItemGroup> |
80 | 80 |
<ItemGroup> |
81 |
<Compile Include="Item\Association.cs" />
|
|
82 |
<Compile Include="Item\Attribute.cs" />
|
|
83 |
<Compile Include="Item\Connector.cs" />
|
|
84 |
<Compile Include="Item\LineNumberRun.cs" />
|
|
85 |
<Compile Include="Item\Property.cs" />
|
|
81 |
<Compile Include="Model\Other\Association.cs" />
|
|
82 |
<Compile Include="Model\Other\Attribute.cs" />
|
|
83 |
<Compile Include="Model\Other\Connector.cs" />
|
|
84 |
<Compile Include="Model\Other\LineNumberRun.cs" />
|
|
85 |
<Compile Include="Model\Other\Property.cs" />
|
|
86 | 86 |
<Compile Include="Project_DB.cs" /> |
87 | 87 |
<Compile Include="Project_Info.cs" /> |
88 |
<Compile Include="Item\Document.cs" />
|
|
89 |
<Compile Include="Item\Line.cs" />
|
|
90 |
<Compile Include="Item\LineNumber.cs" />
|
|
91 |
<Compile Include="Item\Note.cs" />
|
|
88 |
<Compile Include="Model\Document.cs" />
|
|
89 |
<Compile Include="Model\Line.cs" />
|
|
90 |
<Compile Include="Model\LineNumber.cs" />
|
|
91 |
<Compile Include="Model\Note.cs" />
|
|
92 | 92 |
<Compile Include="Properties\AssemblyInfo.cs" /> |
93 |
<Compile Include="Item\Symbol.cs" />
|
|
94 |
<Compile Include="Item\Text.cs" />
|
|
93 |
<Compile Include="Model\Symbol.cs" />
|
|
94 |
<Compile Include="Model\Text.cs" />
|
|
95 | 95 |
</ItemGroup> |
96 | 96 |
<ItemGroup> |
97 | 97 |
<None Include="App.config" /> |
DTI_PID/BaseModel/Item/Association.cs | ||
---|---|---|
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 Association |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private string _VALUE; |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Item/Attribute.cs | ||
---|---|---|
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 Attribute |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Item/Connector.cs | ||
---|---|---|
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 Connector |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private int _CONNECTED_AT; |
|
13 |
private string _CONNECTEDITEM; |
|
14 |
private string _CONNECTPOINT; |
|
15 |
private string _SCENECONNECTPOINT; |
|
16 |
|
|
17 |
public string UID { get => _UID; set => _UID = value; } |
|
18 |
public int CONNECTED_AT { get => _CONNECTED_AT; set => _CONNECTED_AT = value; } |
|
19 |
public string CONNECTEDITEM { get => _CONNECTEDITEM; set => _CONNECTEDITEM = value; } |
|
20 |
public string CONNECTPOINT { get => _CONNECTPOINT; set => _CONNECTPOINT = value; } |
|
21 |
public string SCENECONNECTPOINT { get => _SCENECONNECTPOINT; set => _SCENECONNECTPOINT = value; } |
|
22 |
} |
|
23 |
} |
DTI_PID/BaseModel/Item/Document.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
using System.IO; |
|
7 |
using System.Xml.Linq; |
|
8 |
using System.Windows.Forms; |
|
9 |
|
|
10 |
namespace Converter.BaseModel |
|
11 |
{ |
|
12 |
public class Document |
|
13 |
{ |
|
14 |
private string _DWGNAME; |
|
15 |
private string _SIZE; |
|
16 |
private List<Symbol> _SYMBOLS = new List<Symbol>(); |
|
17 |
private List<Text> _TEXTINFOS = new List<Text>(); |
|
18 |
private List<Note> _NOTES = new List<Note>(); |
|
19 |
private List<Line> _LINES = new List<Line>(); |
|
20 |
private List<LineNumber> _LINENUMBERS = new List<LineNumber>(); |
|
21 |
private bool _Enable; |
|
22 |
|
|
23 |
public bool Enable { get { return _Enable; } } |
|
24 |
|
|
25 |
public List<Symbol> SYMBOLS { get => _SYMBOLS; set => _SYMBOLS = value; } |
|
26 |
public List<Text> TEXTINFOS { get => _TEXTINFOS; set => _TEXTINFOS = value; } |
|
27 |
public List<Note> NOTES { get => _NOTES; set => _NOTES = value; } |
|
28 |
public List<Line> LINES { get => _LINES; set => _LINES = value; } |
|
29 |
public List<LineNumber> LINENUMBERS { get => _LINENUMBERS; set => _LINENUMBERS = value; } |
|
30 |
public string DWGNAME { get => _DWGNAME; set => _DWGNAME = value; } |
|
31 |
public string SIZE { get => _SIZE; set => _SIZE = value; } |
|
32 |
|
|
33 |
public Document(string xmlPath) |
|
34 |
{ |
|
35 |
try |
|
36 |
{ |
|
37 |
XElement xml = XElement.Load(xmlPath); |
|
38 |
DWGNAME = xml.Element("DWGNAME").Value; |
|
39 |
SIZE = xml.Element("SIZE").Value; |
|
40 |
|
|
41 |
SetSymbol(xml.Element("SYMBOLS")); |
|
42 |
SetLine(xml.Element("LINEINFOS")); |
|
43 |
SetLineNumber(xml.Element("LINENOS")); |
|
44 |
SetText(xml.Element("TEXTINFOS")); |
|
45 |
SetNote(xml.Element("NOTES")); |
|
46 |
|
|
47 |
_Enable = true; |
|
48 |
} |
|
49 |
catch (Exception ex) |
|
50 |
{ |
|
51 |
_Enable = false; |
|
52 |
MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); |
|
53 |
} |
|
54 |
} |
|
55 |
|
|
56 |
#region READ XML |
|
57 |
private void SetSymbol(XElement node) |
|
58 |
{ |
|
59 |
foreach (XElement item in node.Elements("SYMBOL")) |
|
60 |
{ |
|
61 |
Symbol symbol = new Symbol() |
|
62 |
{ |
|
63 |
UID = item.Element("UID").Value, |
|
64 |
NAME = item.Element("NAME").Value, |
|
65 |
TYPE = item.Element("TYPE").Value, |
|
66 |
OWNER = item.Element("OWNER").Value, |
|
67 |
ORIGINALPOINT = item.Element("ORIGINALPOINT").Value, |
|
68 |
CONNECTIONPOINT = item.Element("CONNECTIONPOINT").Value, |
|
69 |
LOCATION = item.Element("LOCATION").Value, |
|
70 |
SIZE = item.Element("SIZE").Value, |
|
71 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
72 |
PARENT = item.Element("PARENT").Value, |
|
73 |
CHILD = item.Element("CHILD").Value, |
|
74 |
HASINSTRUMENTLABEL = item.Element("HASINSTRUMENTLABEL").Value, |
|
75 |
AREA = item.Element("AREA").Value, |
|
76 |
FLIP = Convert.ToInt32(item.Element("FLIP").Value), |
|
77 |
CURRENTPOINTMODEINDEX = Convert.ToInt32(item.Element("CURRENTPOINTMODEINDEX").Value) |
|
78 |
}; |
|
79 |
SetAssociations(item.Element("ASSOCIATIONS"), symbol.ASSOCIATIONS); |
|
80 |
SetConnectors(item.Element("CONNECTORS"), symbol.CONNECTORS); |
|
81 |
SetProperties(item.Element("PROPERTIES"), symbol.PROPERTIES); |
|
82 |
SetAttributes(item.Element("SYMBOLATTRIBUTES"), symbol.ATTRIBUTES); |
|
83 |
|
|
84 |
SYMBOLS.Add(symbol); |
|
85 |
} |
|
86 |
} |
|
87 |
|
|
88 |
private void SetLine(XElement node) |
|
89 |
{ |
|
90 |
foreach (XElement item in node.Elements("LINE")) |
|
91 |
{ |
|
92 |
Line line = new Line() |
|
93 |
{ |
|
94 |
OWNER = item.Attribute("OWNER").Value, |
|
95 |
UID = item.Element("UID").Value, |
|
96 |
STARTPOINT = item.Element("STARTPOINT").Value, |
|
97 |
ENDPOINT = item.Element("ENDPOINT").Value, |
|
98 |
TYPE = item.Element("TYPE").Value, |
|
99 |
AREA = item.Element("AREA").Value, |
|
100 |
THICKNESS = item.Element("THICKNESS").Value, |
|
101 |
}; |
|
102 |
SetConnectors(item.Element("CONNECTORS"), line.CONNECTOR); |
|
103 |
LINES.Add(line); |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
private void SetLineNumber(XElement node) |
|
108 |
{ |
|
109 |
foreach (XElement item in node.Elements("LINE_NO")) |
|
110 |
{ |
|
111 |
LineNumber lineNumber = new LineNumber() |
|
112 |
{ |
|
113 |
UID = item.Element("UID").Value, |
|
114 |
TEXT = item.Element("TEXT").Value, |
|
115 |
LOCATION = item.Element("LOCATION").Value, |
|
116 |
WIDTH = item.Element("WIDTH").Value, |
|
117 |
HEIGHT = item.Element("HEIGHT").Value, |
|
118 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
119 |
AREA = item.Element("AREA").Value |
|
120 |
}; |
|
121 |
SetLineNumberRuns(item, lineNumber.RUNS); |
|
122 |
SetProperties(item.Element("PROPERTIES"), lineNumber.PROPERTIES); |
|
123 |
SetAttributes(item, lineNumber.ATTRIBUTES); |
|
124 |
LINENUMBERS.Add(lineNumber); |
|
125 |
} |
|
126 |
} |
|
127 |
|
|
128 |
private void SetText(XElement node) |
|
129 |
{ |
|
130 |
foreach (XElement item in node.Elements("ATTRIBUTE")) |
|
131 |
{ |
|
132 |
Text text = new Text() |
|
133 |
{ |
|
134 |
UID = item.Element("UID").Value, |
|
135 |
ATTRIBUTEVALUE = item.Element("ATTRIBUTEVALUE").Value, |
|
136 |
NAME = item.Element("NAME").Value, |
|
137 |
LOCATION = item.Element("LOCATION").Value, |
|
138 |
VALUE = item.Element("VALUE").Value, |
|
139 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
140 |
WIDTH = item.Element("WIDTH").Value, |
|
141 |
HEIGHT = item.Element("HEIGHT").Value, |
|
142 |
AREA = item.Element("AREA").Value |
|
143 |
}; |
|
144 |
|
|
145 |
TEXTINFOS.Add(text); |
|
146 |
} |
|
147 |
} |
|
148 |
|
|
149 |
private void SetNote(XElement node) |
|
150 |
{ |
|
151 |
foreach (XElement item in node.Elements("ATTRIBUTE")) |
|
152 |
{ |
|
153 |
Note note = new Note() |
|
154 |
{ |
|
155 |
UID = item.Element("UID").Value, |
|
156 |
ATTRIBUTEVALUE = item.Element("ATTRIBUTEVALUE").Value, |
|
157 |
NAME = item.Element("NAME").Value, |
|
158 |
LOCATION = item.Element("LOCATION").Value, |
|
159 |
VALUE = item.Element("VALUE").Value, |
|
160 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
161 |
WIDTH = item.Element("WIDTH").Value, |
|
162 |
HEIGHT = item.Element("HEIGHT").Value, |
|
163 |
AREA = item.Element("AREA").Value |
|
164 |
}; |
|
165 |
|
|
166 |
NOTES.Add(note); |
|
167 |
} |
|
168 |
} |
|
169 |
|
|
170 |
private void SetAssociations(XElement node, List<Association> associations) |
|
171 |
{ |
|
172 |
foreach (XElement item in node.Elements("ASSOCIATION")) |
|
173 |
{ |
|
174 |
associations.Add(new Association() |
|
175 |
{ |
|
176 |
TYPE = item.Attribute("TYPE").Value, |
|
177 |
VALUE = item.Value |
|
178 |
}); |
|
179 |
} |
|
180 |
} |
|
181 |
|
|
182 |
private void SetConnectors(XElement node, List<Connector> connectors) |
|
183 |
{ |
|
184 |
foreach (XElement item in node.Elements("CONNECTOR")) |
|
185 |
{ |
|
186 |
connectors.Add(new Connector() |
|
187 |
{ |
|
188 |
UID = item.Attribute("UID").Value, |
|
189 |
CONNECTED_AT = Convert.ToInt32(item.Attribute("CONNECTED_AT").Value), |
|
190 |
CONNECTEDITEM = item.Element("CONNECTEDITEM").Value, |
|
191 |
CONNECTPOINT = item.Element("CONNECTPOINT").Value, |
|
192 |
SCENECONNECTPOINT = item.Element("SCENECONNECTPOINT").Value, |
|
193 |
}); |
|
194 |
} |
|
195 |
} |
|
196 |
|
|
197 |
private void SetProperties(XElement node, List<Property> properties) |
|
198 |
{ |
|
199 |
foreach (XElement item in node.Elements("PROPERTY")) |
|
200 |
{ |
|
201 |
try |
|
202 |
{ |
|
203 |
properties.Add(new Property() |
|
204 |
{ |
|
205 |
UID = item.Attribute("UID").Value, |
|
206 |
LENGTH = item.Attribute("Length").Value, |
|
207 |
EXPRESSION = item.Attribute("Expression").Value, |
|
208 |
DISPLAYATTRIBUTE = item.Attribute("DisplayAttribute").Value, |
|
209 |
ATTRIBUTETYPE = item.Attribute("AttributeType").Value, |
|
210 |
ATTRIBUTE = item.Attribute("Attribute").Value, |
|
211 |
VALUE = item.Value |
|
212 |
}); |
|
213 |
} |
|
214 |
catch (Exception ex) |
|
215 |
{ |
|
216 |
|
|
217 |
} |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
221 |
private void SetAttributes(XElement node, List<Attribute> attributes) |
|
222 |
{ |
|
223 |
foreach (XElement item in node.Elements("PROPERTY")) |
|
224 |
{ |
|
225 |
attributes.Add(new Attribute() |
|
226 |
{ |
|
227 |
UID = item.Attribute("UID").Value, |
|
228 |
LENGTH = item.Attribute("Length").Value, |
|
229 |
EXPRESSION = item.Attribute("Expression").Value, |
|
230 |
DISPLAYATTRIBUTE = item.Attribute("DisplayAttribute").Value, |
|
231 |
ATTRIBUTETYPE = item.Attribute("AttributeType").Value, |
|
232 |
ATTRIBUTE = item.Attribute("Attribute").Value, |
|
233 |
VALUE = item.Value |
|
234 |
}); |
|
235 |
} |
|
236 |
} |
|
237 |
|
|
238 |
private void SetLineNumberRuns(XElement node, List<LineNumberRun> lineNumberRuns) |
|
239 |
{ |
|
240 |
foreach (XElement item in node.Elements("RUN")) |
|
241 |
{ |
|
242 |
LineNumberRun run = new LineNumberRun() |
|
243 |
{ |
|
244 |
TYPE = item.Attribute("TYPE").Value |
|
245 |
}; |
|
246 |
|
|
247 |
foreach (XElement element in item.Elements()) |
|
248 |
{ |
|
249 |
if (element.Name == "SYMBOL") |
|
250 |
{ |
|
251 |
run.RUNITEMS.Add(GetSymbolByUID(element.Element("UID").Value)); |
|
252 |
} |
|
253 |
else if (element.Name == "LINE") |
|
254 |
{ |
|
255 |
run.RUNITEMS.Add(GetLineByUID(element.Element("UID").Value)); |
|
256 |
} |
|
257 |
} |
|
258 |
lineNumberRuns.Add(run); |
|
259 |
} |
|
260 |
} |
|
261 |
#endregion |
|
262 |
|
|
263 |
public Symbol GetSymbolByUID(string uid) |
|
264 |
{ |
|
265 |
return SYMBOLS.Find(x => x.UID == uid); |
|
266 |
} |
|
267 |
|
|
268 |
public Line GetLineByUID(string uid) |
|
269 |
{ |
|
270 |
return LINES.Find(x => x.UID == uid); |
|
271 |
} |
|
272 |
} |
|
273 |
} |
DTI_PID/BaseModel/Item/Line.cs | ||
---|---|---|
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 Line |
|
10 |
{ |
|
11 |
private string _OWNER; |
|
12 |
private string _UID; |
|
13 |
private string _STARTPOINT; |
|
14 |
private string _ENDPOINT; |
|
15 |
private string _TYPE; |
|
16 |
private string _AREA; |
|
17 |
private string _THICKNESS; |
|
18 |
private List<Connector> _CONNECTOR = new List<Connector>(); |
|
19 |
|
|
20 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string STARTPOINT { get => _STARTPOINT; set => _STARTPOINT = value; } |
|
23 |
public string ENDPOINT { get => _ENDPOINT; set => _ENDPOINT = value; } |
|
24 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
25 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
26 |
public string THICKNESS { get => _THICKNESS; set => _THICKNESS = value; } |
|
27 |
public List<Connector> CONNECTOR { get => _CONNECTOR; set => _CONNECTOR = value; } |
|
28 |
} |
|
29 |
} |
DTI_PID/BaseModel/Item/LineNumber.cs | ||
---|---|---|
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 LineNumber |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _TEXT; |
|
13 |
private string _LOCATION; |
|
14 |
private string _WIDTH; |
|
15 |
private string _HEIGHT; |
|
16 |
private double _ANGLE; |
|
17 |
private string _AREA; |
|
18 |
private List<LineNumberRun> _RUNS = new List<LineNumberRun>(); |
|
19 |
private List<Property> _PROPERTIES = new List<Property>(); |
|
20 |
private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
|
21 |
|
|
22 |
public string UID { get => _UID; set => _UID = value; } |
|
23 |
public string TEXT { get => _TEXT; set => _TEXT = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
26 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
27 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
28 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
29 |
public List<LineNumberRun> RUNS { get => _RUNS; set => _RUNS = value; } |
|
30 |
public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
|
31 |
public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
|
32 |
} |
|
33 |
} |
DTI_PID/BaseModel/Item/LineNumberRun.cs | ||
---|---|---|
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 LineNumberRun |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private List<object> _RUNITEMS = new List<object>(); |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public List<object> RUNITEMS { get => _RUNITEMS; set => _RUNITEMS = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Item/Note.cs | ||
---|---|---|
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 Note |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _ATTRIBUTEVALUE; |
|
13 |
private string _NAME; |
|
14 |
private string _LOCATION; |
|
15 |
private string _VALUE; |
|
16 |
private double _ANGLE; |
|
17 |
private string _WIDTH; |
|
18 |
private string _HEIGHT; |
|
19 |
private string _AREA; |
|
20 |
|
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
|
23 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
27 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
28 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
29 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
30 |
} |
|
31 |
} |
DTI_PID/BaseModel/Item/Other/Association.cs | ||
---|---|---|
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 Association |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private string _VALUE; |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Item/Other/Attribute.cs | ||
---|---|---|
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 Attribute |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Item/Other/Connector.cs | ||
---|---|---|
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 Connector |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private int _CONNECTED_AT; |
|
13 |
private string _CONNECTEDITEM; |
|
14 |
private string _CONNECTPOINT; |
|
15 |
private string _SCENECONNECTPOINT; |
|
16 |
|
|
17 |
public string UID { get => _UID; set => _UID = value; } |
|
18 |
public int CONNECTED_AT { get => _CONNECTED_AT; set => _CONNECTED_AT = value; } |
|
19 |
public string CONNECTEDITEM { get => _CONNECTEDITEM; set => _CONNECTEDITEM = value; } |
|
20 |
public string CONNECTPOINT { get => _CONNECTPOINT; set => _CONNECTPOINT = value; } |
|
21 |
public string SCENECONNECTPOINT { get => _SCENECONNECTPOINT; set => _SCENECONNECTPOINT = value; } |
|
22 |
} |
|
23 |
} |
DTI_PID/BaseModel/Item/Other/LineNumberRun.cs | ||
---|---|---|
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 LineNumberRun |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private List<object> _RUNITEMS = new List<object>(); |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public List<object> RUNITEMS { get => _RUNITEMS; set => _RUNITEMS = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Item/Other/Property.cs | ||
---|---|---|
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 Property |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Item/Property.cs | ||
---|---|---|
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 Property |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Item/Symbol.cs | ||
---|---|---|
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 Symbol |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _NAME; |
|
13 |
private List<Association> _ASSOCIATIONS = new List<Association>(); |
|
14 |
private string _TYPE; |
|
15 |
private string _OWNER; |
|
16 |
private string _ORIGINALPOINT; |
|
17 |
private List<Connector> _CONNECTOR = new List<Connector>(); |
|
18 |
private string _CONNECTIONPOINT; |
|
19 |
private string _LOCATION; |
|
20 |
private string _SIZE; |
|
21 |
private double _ANGLE; |
|
22 |
private string _PARENT; |
|
23 |
private string _CHILD; |
|
24 |
private string _HASINSTRUMENTLABEL; |
|
25 |
private string _AREA; |
|
26 |
private int _FLIP; |
|
27 |
private List<Property> _PROPERTIES = new List<Property>(); |
|
28 |
private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
|
29 |
private int _CURRENTPOINTMODEINDEX; |
|
30 |
|
|
31 |
public string UID { get => _UID; set => _UID = value; } |
|
32 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
33 |
public List<Association> ASSOCIATIONS { get => _ASSOCIATIONS; set => _ASSOCIATIONS = value; } |
|
34 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
35 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
|
36 |
public string ORIGINALPOINT { get => _ORIGINALPOINT; set => _ORIGINALPOINT = value; } |
|
37 |
public List<Connector> CONNECTORS { get => _CONNECTOR; set => _CONNECTOR = value; } |
|
38 |
public string CONNECTIONPOINT { get => _CONNECTIONPOINT; set => _CONNECTIONPOINT = value; } |
|
39 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
40 |
public string SIZE { get => _SIZE; set => _SIZE = value; } |
|
41 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
42 |
public string PARENT { get => _PARENT; set => _PARENT = value; } |
|
43 |
public string CHILD { get => _CHILD; set => _CHILD = value; } |
|
44 |
public string HASINSTRUMENTLABEL { get => _HASINSTRUMENTLABEL; set => _HASINSTRUMENTLABEL = value; } |
|
45 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
46 |
public int FLIP { get => _FLIP; set => _FLIP = value; } |
|
47 |
public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
|
48 |
public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
|
49 |
public int CURRENTPOINTMODEINDEX { get => _CURRENTPOINTMODEINDEX; set => _CURRENTPOINTMODEINDEX = value; } |
|
50 |
|
|
51 |
} |
|
52 |
} |
DTI_PID/BaseModel/Item/Text.cs | ||
---|---|---|
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 Text |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _ATTRIBUTEVALUE; |
|
13 |
private string _NAME; |
|
14 |
private string _LOCATION; |
|
15 |
private string _VALUE; |
|
16 |
private double _ANGLE; |
|
17 |
private string _WIDTH; |
|
18 |
private string _HEIGHT; |
|
19 |
private string _AREA; |
|
20 |
|
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
|
23 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
27 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
28 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
29 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
30 |
} |
|
31 |
} |
DTI_PID/BaseModel/Model/Document.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
using System.IO; |
|
7 |
using System.Xml.Linq; |
|
8 |
using System.Windows.Forms; |
|
9 |
|
|
10 |
namespace Converter.BaseModel |
|
11 |
{ |
|
12 |
public class Document |
|
13 |
{ |
|
14 |
private string _DWGNAME; |
|
15 |
private string _SIZE; |
|
16 |
private List<Symbol> _SYMBOLS = new List<Symbol>(); |
|
17 |
private List<Text> _TEXTINFOS = new List<Text>(); |
|
18 |
private List<Note> _NOTES = new List<Note>(); |
|
19 |
private List<Line> _LINES = new List<Line>(); |
|
20 |
private List<LineNumber> _LINENUMBERS = new List<LineNumber>(); |
|
21 |
private bool _Enable; |
|
22 |
|
|
23 |
public bool Enable { get { return _Enable; } } |
|
24 |
|
|
25 |
public List<Symbol> SYMBOLS { get => _SYMBOLS; set => _SYMBOLS = value; } |
|
26 |
public List<Text> TEXTINFOS { get => _TEXTINFOS; set => _TEXTINFOS = value; } |
|
27 |
public List<Note> NOTES { get => _NOTES; set => _NOTES = value; } |
|
28 |
public List<Line> LINES { get => _LINES; set => _LINES = value; } |
|
29 |
public List<LineNumber> LINENUMBERS { get => _LINENUMBERS; set => _LINENUMBERS = value; } |
|
30 |
public string DWGNAME { get => _DWGNAME; set => _DWGNAME = value; } |
|
31 |
public string SIZE { get => _SIZE; set => _SIZE = value; } |
|
32 |
|
|
33 |
public Document(string xmlPath) |
|
34 |
{ |
|
35 |
try |
|
36 |
{ |
|
37 |
XElement xml = XElement.Load(xmlPath); |
|
38 |
DWGNAME = xml.Element("DWGNAME").Value; |
|
39 |
SIZE = xml.Element("SIZE").Value; |
|
40 |
|
|
41 |
SetSymbol(xml.Element("SYMBOLS")); |
|
42 |
SetLine(xml.Element("LINEINFOS")); |
|
43 |
SetLineNumber(xml.Element("LINENOS")); |
|
44 |
SetText(xml.Element("TEXTINFOS")); |
|
45 |
SetNote(xml.Element("NOTES")); |
|
46 |
|
|
47 |
_Enable = true; |
|
48 |
} |
|
49 |
catch (Exception ex) |
|
50 |
{ |
|
51 |
_Enable = false; |
|
52 |
MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); |
|
53 |
} |
|
54 |
} |
|
55 |
|
|
56 |
#region READ XML |
|
57 |
private void SetSymbol(XElement node) |
|
58 |
{ |
|
59 |
foreach (XElement item in node.Elements("SYMBOL")) |
|
60 |
{ |
|
61 |
Symbol symbol = new Symbol() |
|
62 |
{ |
|
63 |
UID = item.Element("UID").Value, |
|
64 |
NAME = item.Element("NAME").Value, |
|
65 |
TYPE = item.Element("TYPE").Value, |
|
66 |
OWNER = item.Element("OWNER").Value, |
|
67 |
ORIGINALPOINT = item.Element("ORIGINALPOINT").Value, |
|
68 |
CONNECTIONPOINT = item.Element("CONNECTIONPOINT").Value, |
|
69 |
LOCATION = item.Element("LOCATION").Value, |
|
70 |
SIZE = item.Element("SIZE").Value, |
|
71 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
72 |
PARENT = item.Element("PARENT").Value, |
|
73 |
CHILD = item.Element("CHILD").Value, |
|
74 |
HASINSTRUMENTLABEL = item.Element("HASINSTRUMENTLABEL").Value, |
|
75 |
AREA = item.Element("AREA").Value, |
|
76 |
FLIP = Convert.ToInt32(item.Element("FLIP").Value), |
|
77 |
CURRENTPOINTMODEINDEX = Convert.ToInt32(item.Element("CURRENTPOINTMODEINDEX").Value) |
|
78 |
}; |
|
79 |
SetAssociations(item.Element("ASSOCIATIONS"), symbol.ASSOCIATIONS); |
|
80 |
SetConnectors(item.Element("CONNECTORS"), symbol.CONNECTORS); |
|
81 |
SetProperties(item.Element("PROPERTIES"), symbol.PROPERTIES); |
|
82 |
SetAttributes(item.Element("SYMBOLATTRIBUTES"), symbol.ATTRIBUTES); |
|
83 |
|
|
84 |
SYMBOLS.Add(symbol); |
|
85 |
} |
|
86 |
} |
|
87 |
|
|
88 |
private void SetLine(XElement node) |
|
89 |
{ |
|
90 |
foreach (XElement item in node.Elements("LINE")) |
|
91 |
{ |
|
92 |
Line line = new Line() |
|
93 |
{ |
|
94 |
OWNER = item.Attribute("OWNER").Value, |
|
95 |
UID = item.Element("UID").Value, |
|
96 |
STARTPOINT = item.Element("STARTPOINT").Value, |
|
97 |
ENDPOINT = item.Element("ENDPOINT").Value, |
|
98 |
TYPE = item.Element("TYPE").Value, |
|
99 |
AREA = item.Element("AREA").Value, |
|
100 |
THICKNESS = item.Element("THICKNESS").Value, |
|
101 |
}; |
|
102 |
SetConnectors(item.Element("CONNECTORS"), line.CONNECTOR); |
|
103 |
LINES.Add(line); |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
private void SetLineNumber(XElement node) |
|
108 |
{ |
|
109 |
foreach (XElement item in node.Elements("LINE_NO")) |
|
110 |
{ |
|
111 |
LineNumber lineNumber = new LineNumber() |
|
112 |
{ |
|
113 |
UID = item.Element("UID").Value, |
|
114 |
TEXT = item.Element("TEXT").Value, |
|
115 |
LOCATION = item.Element("LOCATION").Value, |
|
116 |
WIDTH = item.Element("WIDTH").Value, |
|
117 |
HEIGHT = item.Element("HEIGHT").Value, |
|
118 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
119 |
AREA = item.Element("AREA").Value |
|
120 |
}; |
|
121 |
SetLineNumberRuns(item, lineNumber.RUNS); |
|
122 |
SetProperties(item.Element("PROPERTIES"), lineNumber.PROPERTIES); |
|
123 |
SetAttributes(item, lineNumber.ATTRIBUTES); |
|
124 |
LINENUMBERS.Add(lineNumber); |
|
125 |
} |
|
126 |
} |
|
127 |
|
|
128 |
private void SetText(XElement node) |
|
129 |
{ |
|
130 |
foreach (XElement item in node.Elements("ATTRIBUTE")) |
|
131 |
{ |
|
132 |
Text text = new Text() |
|
133 |
{ |
|
134 |
UID = item.Element("UID").Value, |
|
135 |
ATTRIBUTEVALUE = item.Element("ATTRIBUTEVALUE").Value, |
|
136 |
NAME = item.Element("NAME").Value, |
|
137 |
LOCATION = item.Element("LOCATION").Value, |
|
138 |
VALUE = item.Element("VALUE").Value, |
|
139 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
140 |
WIDTH = item.Element("WIDTH").Value, |
|
141 |
HEIGHT = item.Element("HEIGHT").Value, |
|
142 |
AREA = item.Element("AREA").Value |
|
143 |
}; |
|
144 |
|
|
145 |
TEXTINFOS.Add(text); |
|
146 |
} |
|
147 |
} |
|
148 |
|
|
149 |
private void SetNote(XElement node) |
|
150 |
{ |
|
151 |
foreach (XElement item in node.Elements("ATTRIBUTE")) |
|
152 |
{ |
|
153 |
Note note = new Note() |
|
154 |
{ |
|
155 |
UID = item.Element("UID").Value, |
|
156 |
ATTRIBUTEVALUE = item.Element("ATTRIBUTEVALUE").Value, |
|
157 |
NAME = item.Element("NAME").Value, |
|
158 |
LOCATION = item.Element("LOCATION").Value, |
|
159 |
VALUE = item.Element("VALUE").Value, |
|
160 |
ANGLE = Convert.ToDouble(item.Element("ANGLE").Value), |
|
161 |
WIDTH = item.Element("WIDTH").Value, |
|
162 |
HEIGHT = item.Element("HEIGHT").Value, |
|
163 |
AREA = item.Element("AREA").Value |
|
164 |
}; |
|
165 |
|
|
166 |
NOTES.Add(note); |
|
167 |
} |
|
168 |
} |
|
169 |
|
|
170 |
private void SetAssociations(XElement node, List<Association> associations) |
|
171 |
{ |
|
172 |
foreach (XElement item in node.Elements("ASSOCIATION")) |
|
173 |
{ |
|
174 |
associations.Add(new Association() |
|
175 |
{ |
|
176 |
TYPE = item.Attribute("TYPE").Value, |
|
177 |
VALUE = item.Value |
|
178 |
}); |
|
179 |
} |
|
180 |
} |
|
181 |
|
|
182 |
private void SetConnectors(XElement node, List<Connector> connectors) |
|
183 |
{ |
|
184 |
foreach (XElement item in node.Elements("CONNECTOR")) |
|
185 |
{ |
|
186 |
connectors.Add(new Connector() |
|
187 |
{ |
|
188 |
UID = item.Attribute("UID").Value, |
|
189 |
CONNECTED_AT = Convert.ToInt32(item.Attribute("CONNECTED_AT").Value), |
|
190 |
CONNECTEDITEM = item.Element("CONNECTEDITEM").Value, |
|
191 |
CONNECTPOINT = item.Element("CONNECTPOINT").Value, |
|
192 |
SCENECONNECTPOINT = item.Element("SCENECONNECTPOINT").Value, |
|
193 |
}); |
|
194 |
} |
|
195 |
} |
|
196 |
|
|
197 |
private void SetProperties(XElement node, List<Property> properties) |
|
198 |
{ |
|
199 |
foreach (XElement item in node.Elements("PROPERTY")) |
|
200 |
{ |
|
201 |
try |
|
202 |
{ |
|
203 |
properties.Add(new Property() |
|
204 |
{ |
|
205 |
UID = item.Attribute("UID").Value, |
|
206 |
LENGTH = item.Attribute("Length").Value, |
|
207 |
EXPRESSION = item.Attribute("Expression").Value, |
|
208 |
DISPLAYATTRIBUTE = item.Attribute("DisplayAttribute").Value, |
|
209 |
ATTRIBUTETYPE = item.Attribute("AttributeType").Value, |
|
210 |
ATTRIBUTE = item.Attribute("Attribute").Value, |
|
211 |
VALUE = item.Value |
|
212 |
}); |
|
213 |
} |
|
214 |
catch (Exception ex) |
|
215 |
{ |
|
216 |
|
|
217 |
} |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
221 |
private void SetAttributes(XElement node, List<Attribute> attributes) |
|
222 |
{ |
|
223 |
foreach (XElement item in node.Elements("PROPERTY")) |
|
224 |
{ |
|
225 |
attributes.Add(new Attribute() |
|
226 |
{ |
|
227 |
UID = item.Attribute("UID").Value, |
|
228 |
LENGTH = item.Attribute("Length").Value, |
|
229 |
EXPRESSION = item.Attribute("Expression").Value, |
|
230 |
DISPLAYATTRIBUTE = item.Attribute("DisplayAttribute").Value, |
|
231 |
ATTRIBUTETYPE = item.Attribute("AttributeType").Value, |
|
232 |
ATTRIBUTE = item.Attribute("Attribute").Value, |
|
233 |
VALUE = item.Value |
|
234 |
}); |
|
235 |
} |
|
236 |
} |
|
237 |
|
|
238 |
private void SetLineNumberRuns(XElement node, List<LineNumberRun> lineNumberRuns) |
|
239 |
{ |
|
240 |
foreach (XElement item in node.Elements("RUN")) |
|
241 |
{ |
|
242 |
LineNumberRun run = new LineNumberRun() |
|
243 |
{ |
|
244 |
TYPE = item.Attribute("TYPE").Value |
|
245 |
}; |
|
246 |
|
|
247 |
foreach (XElement element in item.Elements()) |
|
248 |
{ |
|
249 |
if (element.Name == "SYMBOL") |
|
250 |
{ |
|
251 |
run.RUNITEMS.Add(GetSymbolByUID(element.Element("UID").Value)); |
|
252 |
} |
|
253 |
else if (element.Name == "LINE") |
|
254 |
{ |
|
255 |
run.RUNITEMS.Add(GetLineByUID(element.Element("UID").Value)); |
|
256 |
} |
|
257 |
} |
|
258 |
lineNumberRuns.Add(run); |
|
259 |
} |
|
260 |
} |
|
261 |
#endregion |
|
262 |
|
|
263 |
public Symbol GetSymbolByUID(string uid) |
|
264 |
{ |
|
265 |
return SYMBOLS.Find(x => x.UID == uid); |
|
266 |
} |
|
267 |
|
|
268 |
public Line GetLineByUID(string uid) |
|
269 |
{ |
|
270 |
return LINES.Find(x => x.UID == uid); |
|
271 |
} |
|
272 |
} |
|
273 |
} |
DTI_PID/BaseModel/Model/Line.cs | ||
---|---|---|
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 Line |
|
10 |
{ |
|
11 |
private string _OWNER; |
|
12 |
private string _UID; |
|
13 |
private string _STARTPOINT; |
|
14 |
private string _ENDPOINT; |
|
15 |
private string _TYPE; |
|
16 |
private string _AREA; |
|
17 |
private string _THICKNESS; |
|
18 |
private List<Connector> _CONNECTOR = new List<Connector>(); |
|
19 |
|
|
20 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string STARTPOINT { get => _STARTPOINT; set => _STARTPOINT = value; } |
|
23 |
public string ENDPOINT { get => _ENDPOINT; set => _ENDPOINT = value; } |
|
24 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
25 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
26 |
public string THICKNESS { get => _THICKNESS; set => _THICKNESS = value; } |
|
27 |
public List<Connector> CONNECTOR { get => _CONNECTOR; set => _CONNECTOR = value; } |
|
28 |
} |
|
29 |
} |
DTI_PID/BaseModel/Model/LineNumber.cs | ||
---|---|---|
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 LineNumber |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _TEXT; |
|
13 |
private string _LOCATION; |
|
14 |
private string _WIDTH; |
|
15 |
private string _HEIGHT; |
|
16 |
private double _ANGLE; |
|
17 |
private string _AREA; |
|
18 |
private List<LineNumberRun> _RUNS = new List<LineNumberRun>(); |
|
19 |
private List<Property> _PROPERTIES = new List<Property>(); |
|
20 |
private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
|
21 |
|
|
22 |
public string UID { get => _UID; set => _UID = value; } |
|
23 |
public string TEXT { get => _TEXT; set => _TEXT = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
26 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
27 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
28 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
29 |
public List<LineNumberRun> RUNS { get => _RUNS; set => _RUNS = value; } |
|
30 |
public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
|
31 |
public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
|
32 |
} |
|
33 |
} |
DTI_PID/BaseModel/Model/Note.cs | ||
---|---|---|
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 Note |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _ATTRIBUTEVALUE; |
|
13 |
private string _NAME; |
|
14 |
private string _LOCATION; |
|
15 |
private string _VALUE; |
|
16 |
private double _ANGLE; |
|
17 |
private string _WIDTH; |
|
18 |
private string _HEIGHT; |
|
19 |
private string _AREA; |
|
20 |
|
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
|
23 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
27 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
28 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
29 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
30 |
} |
|
31 |
} |
DTI_PID/BaseModel/Model/Other/Association.cs | ||
---|---|---|
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 Association |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private string _VALUE; |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Model/Other/Attribute.cs | ||
---|---|---|
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 Attribute |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Model/Other/Connector.cs | ||
---|---|---|
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 Connector |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private int _CONNECTED_AT; |
|
13 |
private string _CONNECTEDITEM; |
|
14 |
private string _CONNECTPOINT; |
|
15 |
private string _SCENECONNECTPOINT; |
|
16 |
|
|
17 |
public string UID { get => _UID; set => _UID = value; } |
|
18 |
public int CONNECTED_AT { get => _CONNECTED_AT; set => _CONNECTED_AT = value; } |
|
19 |
public string CONNECTEDITEM { get => _CONNECTEDITEM; set => _CONNECTEDITEM = value; } |
|
20 |
public string CONNECTPOINT { get => _CONNECTPOINT; set => _CONNECTPOINT = value; } |
|
21 |
public string SCENECONNECTPOINT { get => _SCENECONNECTPOINT; set => _SCENECONNECTPOINT = value; } |
|
22 |
} |
|
23 |
} |
DTI_PID/BaseModel/Model/Other/LineNumberRun.cs | ||
---|---|---|
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 LineNumberRun |
|
10 |
{ |
|
11 |
private string _TYPE; |
|
12 |
private List<object> _RUNITEMS = new List<object>(); |
|
13 |
|
|
14 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
15 |
public List<object> RUNITEMS { get => _RUNITEMS; set => _RUNITEMS = value; } |
|
16 |
} |
|
17 |
} |
DTI_PID/BaseModel/Model/Other/Property.cs | ||
---|---|---|
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 Property |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _LENGTH; |
|
13 |
private string _EXPRESSION; |
|
14 |
private string _DISPLAYATTRIBUTE; |
|
15 |
private string _ATTRIBUTETYPE; |
|
16 |
private string _ATTRIBUTE; |
|
17 |
private string _VALUE; |
|
18 |
|
|
19 |
public string UID { get => _UID; set => _UID = value; } |
|
20 |
public string LENGTH { get => _LENGTH; set => _LENGTH = value; } |
|
21 |
public string EXPRESSION { get => _EXPRESSION; set => _EXPRESSION = value; } |
|
22 |
public string DISPLAYATTRIBUTE { get => _DISPLAYATTRIBUTE; set => _DISPLAYATTRIBUTE = value; } |
|
23 |
public string ATTRIBUTETYPE { get => _ATTRIBUTETYPE; set => _ATTRIBUTETYPE = value; } |
|
24 |
public string ATTRIBUTE { get => _ATTRIBUTE; set => _ATTRIBUTE = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
} |
|
27 |
} |
DTI_PID/BaseModel/Model/Symbol.cs | ||
---|---|---|
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 Symbol |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _NAME; |
|
13 |
private List<Association> _ASSOCIATIONS = new List<Association>(); |
|
14 |
private string _TYPE; |
|
15 |
private string _OWNER; |
|
16 |
private string _ORIGINALPOINT; |
|
17 |
private List<Connector> _CONNECTOR = new List<Connector>(); |
|
18 |
private string _CONNECTIONPOINT; |
|
19 |
private string _LOCATION; |
|
20 |
private string _SIZE; |
|
21 |
private double _ANGLE; |
|
22 |
private string _PARENT; |
|
23 |
private string _CHILD; |
|
24 |
private string _HASINSTRUMENTLABEL; |
|
25 |
private string _AREA; |
|
26 |
private int _FLIP; |
|
27 |
private List<Property> _PROPERTIES = new List<Property>(); |
|
28 |
private List<Attribute> _ATTRIBUTES = new List<Attribute>(); |
|
29 |
private int _CURRENTPOINTMODEINDEX; |
|
30 |
|
|
31 |
public string UID { get => _UID; set => _UID = value; } |
|
32 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
33 |
public List<Association> ASSOCIATIONS { get => _ASSOCIATIONS; set => _ASSOCIATIONS = value; } |
|
34 |
public string TYPE { get => _TYPE; set => _TYPE = value; } |
|
35 |
public string OWNER { get => _OWNER; set => _OWNER = value; } |
|
36 |
public string ORIGINALPOINT { get => _ORIGINALPOINT; set => _ORIGINALPOINT = value; } |
|
37 |
public List<Connector> CONNECTORS { get => _CONNECTOR; set => _CONNECTOR = value; } |
|
38 |
public string CONNECTIONPOINT { get => _CONNECTIONPOINT; set => _CONNECTIONPOINT = value; } |
|
39 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
40 |
public string SIZE { get => _SIZE; set => _SIZE = value; } |
|
41 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
42 |
public string PARENT { get => _PARENT; set => _PARENT = value; } |
|
43 |
public string CHILD { get => _CHILD; set => _CHILD = value; } |
|
44 |
public string HASINSTRUMENTLABEL { get => _HASINSTRUMENTLABEL; set => _HASINSTRUMENTLABEL = value; } |
|
45 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
46 |
public int FLIP { get => _FLIP; set => _FLIP = value; } |
|
47 |
public List<Property> PROPERTIES { get => _PROPERTIES; set => _PROPERTIES = value; } |
|
48 |
public List<Attribute> ATTRIBUTES { get => _ATTRIBUTES; set => _ATTRIBUTES = value; } |
|
49 |
public int CURRENTPOINTMODEINDEX { get => _CURRENTPOINTMODEINDEX; set => _CURRENTPOINTMODEINDEX = value; } |
|
50 |
|
|
51 |
} |
|
52 |
} |
DTI_PID/BaseModel/Model/Text.cs | ||
---|---|---|
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 Text |
|
10 |
{ |
|
11 |
private string _UID; |
|
12 |
private string _ATTRIBUTEVALUE; |
|
13 |
private string _NAME; |
|
14 |
private string _LOCATION; |
|
15 |
private string _VALUE; |
|
16 |
private double _ANGLE; |
|
17 |
private string _WIDTH; |
|
18 |
private string _HEIGHT; |
|
19 |
private string _AREA; |
|
20 |
|
|
21 |
public string UID { get => _UID; set => _UID = value; } |
|
22 |
public string ATTRIBUTEVALUE { get => _ATTRIBUTEVALUE; set => _ATTRIBUTEVALUE = value; } |
|
23 |
public string NAME { get => _NAME; set => _NAME = value; } |
|
24 |
public string LOCATION { get => _LOCATION; set => _LOCATION = value; } |
|
25 |
public string VALUE { get => _VALUE; set => _VALUE = value; } |
|
26 |
public double ANGLE { get => _ANGLE; set => _ANGLE = value; } |
|
27 |
public string WIDTH { get => _WIDTH; set => _WIDTH = value; } |
|
28 |
public string HEIGHT { get => _HEIGHT; set => _HEIGHT = value; } |
|
29 |
public string AREA { get => _AREA; set => _AREA = value; } |
|
30 |
} |
|
31 |
} |
DTI_PID/SPPIDConverter_AutoModeling/ConverterForm.Designer.cs | ||
---|---|---|
28 | 28 |
/// </summary> |
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 |
this.defaultLookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel(); |
|
31 |
this.components = new System.ComponentModel.Container(); |
|
32 |
this.defaultLookAndFeel = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components); |
|
32 | 33 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
33 | 34 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
34 | 35 |
this.btnRun = new DevExpress.XtraEditors.SimpleButton(); |
... | ... | |
45 | 46 |
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); |
46 | 47 |
this.simpleLabelItem2 = new DevExpress.XtraLayout.SimpleLabelItem(); |
47 | 48 |
this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem(); |
48 |
this.layoutControlGroupID2Project = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
49 |
this.labelID2ProjectName = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
50 |
this.labelID2ProjectStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
51 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
52 |
this.simpleLabelItem3 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
53 |
this.simpleLabelItem4 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
54 | 49 |
this.layoutControlGroupItemMapping = new DevExpress.XtraLayout.LayoutControlGroup(); |
55 | 50 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
56 | 51 |
this.labelItemMappingStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
... | ... | |
61 | 56 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
62 | 57 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
63 | 58 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
59 |
this.layoutControlGroupID2Project = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
60 |
this.labelID2ProjectName = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
61 |
this.labelID2ProjectStatus = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
62 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
63 |
this.simpleLabelItem3 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
64 |
this.simpleLabelItem4 = new DevExpress.XtraLayout.SimpleLabelItem(); |
|
64 | 65 |
this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem(); |
65 |
this.xtraFolderBrowserDialog = new DevExpress.XtraEditors.XtraFolderBrowserDialog(); |
|
66 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(); |
|
66 |
this.xtraFolderBrowserDialog = new DevExpress.XtraEditors.XtraFolderBrowserDialog(this.components);
|
|
67 |
this.xtraOpenFileDialog = new DevExpress.XtraEditors.XtraOpenFileDialog(this.components);
|
|
67 | 68 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
68 | 69 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
69 | 70 |
this.layoutControl1.SuspendLayout(); |
... | ... | |
77 | 78 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit(); |
78 | 79 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).BeginInit(); |
79 | 80 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).BeginInit(); |
80 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).BeginInit(); |
|
81 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).BeginInit(); |
|
82 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectStatus)).BeginInit(); |
|
83 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); |
|
84 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).BeginInit(); |
|
85 |
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem4)).BeginInit(); |
|
86 | 81 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupItemMapping)).BeginInit(); |
87 | 82 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
88 | 83 |
((System.ComponentModel.ISupportInitialize)(this.labelItemMappingStatus)).BeginInit(); |
... | ... | |
93 | 88 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
94 | 89 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
95 | 90 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
91 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroupID2Project)).BeginInit(); |
|
92 |
((System.ComponentModel.ISupportInitialize)(this.labelID2ProjectName)).BeginInit(); |
내보내기 Unified diff