개정판 54be6611
Fix: 유사도 리스트 목록 동기화
Change-Id: Id12ee063f2ed00fae961e088ce9188f2c9dd7a12
ID2.Manager/ID2.Manager.Compare/Main.cs | ||
---|---|---|
109 | 109 |
this.radBrowseEditorAVEVAFolder.ValueChanged += RadBrowseEditorAVEVAFolder_ValueChanged; |
110 | 110 |
this.radGridViewDocument.DataBindingComplete += RadGridViewDocument_DataBindingComplete; |
111 | 111 |
this.radGridViewDocument.ViewRowFormatting += RadGridViewDocument_ViewRowFormatting; |
112 |
this.radGridViewDocument.CellClick += RadGridViewDocument_CellClick; |
|
113 | 112 |
this.radButtonElementCompare.Click += RadButtonElementCompare_Click; |
114 | 113 |
this.radButtonElementConfiguration.Click += RadButtonElementConfiguration_Click; |
115 | 114 |
|
... | ... | |
120 | 119 |
|
121 | 120 |
Program.AVEVAPIDFolder = Classes.ID2Helper.IniReadValue(Program.IniFilePath, "Path", "AVEVA P&ID Folder"); |
122 | 121 |
if (!string.IsNullOrEmpty(Program.AVEVAPIDFolder)) this.radBrowseEditorAVEVAFolder.Value = Program.AVEVAPIDFolder; |
122 |
|
|
123 |
this.radGridViewDocument.SelectionChanged += RadGridViewDocument_SelectionChanged; |
|
123 | 124 |
} |
124 | 125 |
catch (Exception ex) |
125 | 126 |
{ |
... | ... | |
130 | 131 |
base.OnLoad(e); |
131 | 132 |
} |
132 | 133 |
|
134 |
private void RadGridViewDocument_SelectionChanged(object sender, EventArgs e) |
|
135 |
{ |
|
136 |
if (this.radGridViewDocument.SelectedRows.Any() && this.radGridViewDocument.SelectedRows[0].DataBoundItem is Document doc) |
|
137 |
{ |
|
138 |
this.Cursor = Cursors.WaitCursor; |
|
139 |
try |
|
140 |
{ |
|
141 |
var verification = this.LayoutValidation.Controls[0] as Controls.Verification; |
|
142 |
verification.CompareDrawings(new List<Document>() { doc }); |
|
143 |
} |
|
144 |
finally |
|
145 |
{ |
|
146 |
this.Cursor = Cursors.Default; |
|
147 |
} |
|
148 |
} |
|
149 |
} |
|
150 |
|
|
133 | 151 |
/// <summary> |
134 | 152 |
/// 도면 리스트를 갱신한다. |
135 | 153 |
/// </summary> |
... | ... | |
198 | 216 |
} |
199 | 217 |
} |
200 | 218 |
|
201 |
private void RadGridViewDocument_CellClick(object sender, GridViewCellEventArgs e) |
|
202 |
{ |
|
203 |
if (e.RowIndex >= 0 && (e.ColumnIndex == 1 || e.ColumnIndex == 2)) |
|
204 |
{ |
|
205 |
if (this.radGridViewDocument.SelectedRows.Any() && this.radGridViewDocument.SelectedRows[0].DataBoundItem is Document doc) |
|
206 |
{ |
|
207 |
this.Cursor = Cursors.WaitCursor; |
|
208 |
try |
|
209 |
{ |
|
210 |
var verification = this.LayoutValidation.Controls[0] as Controls.Verification; |
|
211 |
verification.CompareDrawings(new List<Document>() { doc }); |
|
212 |
} |
|
213 |
finally |
|
214 |
{ |
|
215 |
this.Cursor = Cursors.Default; |
|
216 |
} |
|
217 |
} |
|
218 |
} |
|
219 |
} |
|
220 |
|
|
221 | 219 |
private void RadGridViewDocument_ViewRowFormatting(object sender, RowFormattingEventArgs e) |
222 | 220 |
{ |
223 | 221 |
if(e.RowElement is GridRowElement) |
내보내기 Unified diff