개정판 d19ae675
dev issue #000 : wrapper 제거 및 프로젝트 통합
Change-Id: I7b4c718316c9fde2508aad74af913c20de2bd798
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
8 | 8 |
using System.Threading.Tasks; |
9 | 9 |
using System.Windows.Forms; |
10 | 10 |
using Microsoft.VisualBasic; |
11 |
using Converter.BaseModel; |
|
12 | 11 |
using DevExpress.XtraEditors.Repository; |
13 | 12 |
using DevExpress.XtraEditors.Controls; |
14 | 13 |
using DevExpress.XtraEditors; |
15 | 14 |
using System.Globalization; |
16 | 15 |
using System.Threading; |
17 | 16 |
using System.IO; |
17 |
using Ingr.RAD2D; |
|
18 |
using Converter.BaseModel; |
|
18 | 19 |
using Converter.SPPID.Properties; |
19 | 20 |
using Converter.SPPID.DB; |
20 | 21 |
using Converter.SPPID.Util; |
... | ... | |
60 | 61 |
InitID2Project(); |
61 | 62 |
} |
62 | 63 |
|
63 |
#region |
|
64 |
/// <summary> |
|
65 |
/// The Activate Event is where the command should show its form |
|
66 |
/// if it should be displayed. |
|
67 |
/// </summary> |
|
68 |
/// <param name="sender">The sender of the event</param> |
|
69 |
/// <param name="e">Arguments passed during event</param> |
|
70 |
private void commandControl_Activate(object sender, EventArgs e) |
|
71 |
{ |
|
72 |
Show(); |
|
73 |
} |
|
74 |
|
|
75 |
/// <summary> |
|
76 |
/// The Deactivate event is where the command should hide its form if it |
|
77 |
/// was displayed. The command should not unload the form here. |
|
78 |
/// The command's form should be unloaded in the Class Module Terminate event. |
|
79 |
/// </summary> |
|
80 |
/// <param name="sender">The sender of the event</param> |
|
81 |
/// <param name="e">Arguments passed during event</param> |
|
82 |
private void commandControl_Deactivate(object sender, EventArgs e) |
|
83 |
{ |
|
84 |
Hide(); |
|
85 |
} |
|
86 |
|
|
87 |
/// <summary> |
|
88 |
/// The Initialize event is where the command should perform 1 time |
|
89 |
/// initialization, for example it might save a reference to the |
|
90 |
/// active document in private global data. |
|
91 |
/// </summary> |
|
92 |
/// <param name="sender">The sender of the event</param> |
|
93 |
/// <param name="e">Arguments passed during event</param> |
|
94 |
private void commandControl_Initialize(object sender, EventArgs e) |
|
95 |
{ |
|
96 |
|
|
97 |
} |
|
98 |
|
|
99 |
/// <summary> |
|
100 |
/// The Terminate event is where the command can clean up any command |
|
101 |
/// specific allocated resources. |
|
102 |
/// </summary> |
|
103 |
/// <param name="sender">The sender of the event</param> |
|
104 |
/// <param name="e">Arguments passed during event</param> |
|
105 |
public void commandControl_Terminate(object sender, EventArgs e) |
|
106 |
{ |
|
107 |
|
|
108 |
} |
|
109 |
|
|
110 |
/// <summary> |
|
111 |
/// The primary form should not simply be unloaded. You should set the |
|
112 |
/// Intergraph Command Control Done property to True when you want the |
|
113 |
/// form to be unloaded. Then unload the form in the dispose method. |
|
114 |
/// </summary> |
|
115 |
/// <param name="sender">The sender of the event</param> |
|
116 |
/// <param name="e">Arguments passed during event</param> |
|
117 |
private void ConverterForm_FormClosing(object sender, FormClosingEventArgs e) |
|
118 |
{ |
|
119 |
Hide(); |
|
120 |
commandControl.Done = true; |
|
121 |
e.Cancel = true; //Do not let C# close out the form ... Let RAD close it. |
|
122 |
} |
|
123 |
#endregion |
|
124 |
|
|
125 | 64 |
private void InitUsedDataTable() |
126 | 65 |
{ |
127 | 66 |
// Converter Table |
... | ... | |
524 | 463 |
private void btnRun_Click(object sender, EventArgs e) |
525 | 464 |
{ |
526 | 465 |
_Documents.Clear(); |
527 |
|
|
528 | 466 |
foreach (int rowHandle in gridViewConverter.GetSelectedRows()) |
529 | 467 |
{ |
530 | 468 |
string _FilePath = gridViewConverter.GetRowCellDisplayText(rowHandle, "colDrawingFilePath"); |
... | ... | |
550 | 488 |
_Documents.Add(document); |
551 | 489 |
} |
552 | 490 |
|
553 |
foreach (var document in _Documents) |
|
554 |
{ |
|
555 |
if (document.SetSPPIDMapping() && document.Enable) |
|
556 |
{ |
|
557 |
AutoModeling modeling = new AutoModeling(document, commandControl.Application.RADApplication); |
|
558 |
modeling.Run(); |
|
559 |
break; |
|
560 |
} |
|
561 |
} |
|
562 |
|
|
563 |
Close(); |
|
491 |
DialogResult = DialogResult.OK; |
|
564 | 492 |
} |
565 | 493 |
|
566 | 494 |
private void btnSPPIDDB_Click(object sender, EventArgs e) |
... | ... | |
620 | 548 |
|
621 | 549 |
prevSelectedList = gridViewConverter.GetSelectedRows().ToList(); |
622 | 550 |
} |
623 |
|
|
624 |
private void labelItemMappingStatus_DoubleClick(object sender, EventArgs e) |
|
625 |
{ |
|
626 |
AutoModeling modeling = new AutoModeling(new SPPID_Document(""), commandControl.Application.RADApplication); |
|
627 |
modeling.Test(); |
|
628 |
} |
|
629 | 551 |
} |
630 | 552 |
} |
내보내기 Unified diff