개정판 d63050d6
dev issue #706 : Line 우선순위를 정하고 순서대로 Modeling
Change-Id: I9bdb3fd8621579d3cd1255554b38845a34d2ecd1
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
6 | 6 |
using System.IO; |
7 | 7 |
using System.Xml.Linq; |
8 | 8 |
using System.Windows.Forms; |
9 |
using Converter.SPPID.Util; |
|
9 | 10 |
|
10 | 11 |
namespace Converter.BaseModel |
11 | 12 |
{ |
... | ... | |
77 | 78 |
SetLineNumber(xml.Element("LINENOS")); |
78 | 79 |
SetTrimLine(xml.Element("TRIMLINENOS")); |
79 | 80 |
|
81 |
SetAllConnectors(); |
|
82 |
|
|
80 | 83 |
_Enable = true; |
81 | 84 |
} |
82 | 85 |
} |
... | ... | |
512 | 515 |
{ |
513 | 516 |
return LINES.Find(x => x.UID == uid); |
514 | 517 |
} |
518 |
|
|
519 |
public void SetAllConnectors() |
|
520 |
{ |
|
521 |
foreach (var item in SYMBOLS) |
|
522 |
foreach (var connector in item.CONNECTORS) |
|
523 |
connector.ConnectedObject = SPPIDUtil.FindObjectByUID(this, connector.CONNECTEDITEM); |
|
524 |
|
|
525 |
foreach (var item in LINES) |
|
526 |
foreach (var connector in item.CONNECTORS) |
|
527 |
connector.ConnectedObject = SPPIDUtil.FindObjectByUID(this, connector.CONNECTEDITEM); |
|
528 |
|
|
529 |
foreach (var item in Equipments) |
|
530 |
foreach (var connector in item.CONNECTORS) |
|
531 |
connector.ConnectedObject = SPPIDUtil.FindObjectByUID(this, connector.CONNECTEDITEM); |
|
532 |
} |
|
515 | 533 |
} |
516 | 534 |
} |
내보내기 Unified diff