개정판 bc7a6ad1
dev issue #1227 : fix mapping form
Change-Id: I7fbc1e98010557d17d720f3e355eca5ecfc05a62
DTI_PID/APIDConverter/Form/MappingForm.cs | ||
---|---|---|
291 | 291 |
|
292 | 292 |
} |
293 | 293 |
|
294 |
void GetNodeLoopText(TreeListNode node, ref string result) |
|
295 |
{ |
|
296 |
result = @"\" + node.GetDisplayText("Name") + result; |
|
297 |
if (node.ParentNode != null) |
|
298 |
GetNodeLoopText(node.ParentNode, ref result); |
|
299 |
} |
|
294 |
|
|
300 | 295 |
} |
301 | 296 |
|
302 | 297 |
private void galleryControlAvevaSymbols_Gallery_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) |
303 | 298 |
{ |
304 | 299 |
if (tabbedControlGroup.SelectedTabPage.Name == "GroupSymbol" && gridViewSymbol.FocusedRowHandle >= 0) |
305 | 300 |
{ |
306 |
gridViewSymbol.SetRowCellValue(gridViewSymbol.FocusedRowHandle, "APID_Symbol", e.Item.Caption); |
|
301 |
string result = ""; |
|
302 |
GetNodeLoopText(treeListAvevaSymbol.FocusedNode, ref result); |
|
303 |
gridViewSymbol.SetRowCellValue(gridViewSymbol.FocusedRowHandle, "APID_SYMBOL", result + @"\" + e.Item.Caption); |
|
307 | 304 |
} |
308 | 305 |
} |
309 | 306 |
#endregion |
307 |
|
|
308 |
private void GetNodeLoopText(TreeListNode node, ref string result) |
|
309 |
{ |
|
310 |
result = @"\" + node.GetDisplayText("Name") + result; |
|
311 |
if (node.ParentNode != null) |
|
312 |
GetNodeLoopText(node.ParentNode, ref result); |
|
313 |
} |
|
310 | 314 |
} |
311 | 315 |
} |
내보내기 Unified diff