개정판 7ba0f91b
dev issue #1227 : mapping form
Change-Id: I4788629be6e5128d08d435bcee58a2e1db1c9d4e
DTI_PID/APIDConverter/Form/MappingForm.Designer.cs | ||
---|---|---|
29 | 29 |
private void InitializeComponent() |
30 | 30 |
{ |
31 | 31 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MappingForm)); |
32 |
DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup1 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
|
|
32 |
DevExpress.XtraBars.Ribbon.GalleryItemGroup galleryItemGroup2 = new DevExpress.XtraBars.Ribbon.GalleryItemGroup();
|
|
33 | 33 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
34 | 34 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
35 | 35 |
this.btnRefreshSymbol = new DevExpress.XtraEditors.SimpleButton(); |
... | ... | |
44 | 44 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
45 | 45 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
46 | 46 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
47 |
this.tabbedControlGroup1 = new DevExpress.XtraLayout.TabbedControlGroup();
|
|
48 |
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
|
|
47 |
this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup(); |
|
48 |
this.GroupSymbol = new DevExpress.XtraLayout.LayoutControlGroup();
|
|
49 | 49 |
this.splitterItem2 = new DevExpress.XtraLayout.SplitterItem(); |
50 | 50 |
this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem(); |
51 | 51 |
this.layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup(); |
... | ... | |
77 | 77 |
((System.ComponentModel.ISupportInitialize)(this.gridViewSymbol)).BeginInit(); |
78 | 78 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
79 | 79 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
80 |
((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup1)).BeginInit();
|
|
81 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
|
|
80 |
((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit(); |
|
81 |
((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).BeginInit();
|
|
82 | 82 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).BeginInit(); |
83 | 83 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit(); |
84 | 84 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).BeginInit(); |
... | ... | |
150 | 150 |
// |
151 | 151 |
// |
152 | 152 |
// |
153 |
galleryItemGroup1.Caption = "Items";
|
|
153 |
galleryItemGroup2.Caption = "Items";
|
|
154 | 154 |
this.galleryControlAvevaSymbols.Gallery.Groups.AddRange(new DevExpress.XtraBars.Ribbon.GalleryItemGroup[] { |
155 |
galleryItemGroup1}); |
|
155 |
galleryItemGroup2}); |
|
156 |
this.galleryControlAvevaSymbols.Gallery.ItemDoubleClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(this.galleryControlAvevaSymbols_Gallery_ItemDoubleClick); |
|
156 | 157 |
this.galleryControlAvevaSymbols.Location = new System.Drawing.Point(795, 357); |
157 | 158 |
this.galleryControlAvevaSymbols.Name = "galleryControlAvevaSymbols"; |
158 | 159 |
this.galleryControlAvevaSymbols.Size = new System.Drawing.Size(304, 269); |
... | ... | |
241 | 242 |
this.Root.GroupBordersVisible = false; |
242 | 243 |
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
243 | 244 |
this.emptySpaceItem1, |
244 |
this.tabbedControlGroup1,
|
|
245 |
this.tabbedControlGroup, |
|
245 | 246 |
this.layoutControlItem2, |
246 | 247 |
this.layoutControlItem3, |
247 | 248 |
this.splitterItem1, |
... | ... | |
264 | 265 |
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
265 | 266 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
266 | 267 |
// |
267 |
// tabbedControlGroup1
|
|
268 |
// tabbedControlGroup |
|
268 | 269 |
// |
269 |
this.tabbedControlGroup1.Location = new System.Drawing.Point(0, 0);
|
|
270 |
this.tabbedControlGroup1.Name = "tabbedControlGroup1";
|
|
271 |
this.tabbedControlGroup1.SelectedTabPage = this.layoutControlGroup1;
|
|
272 |
this.tabbedControlGroup1.Size = new System.Drawing.Size(761, 670);
|
|
273 |
this.tabbedControlGroup1.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
|
274 |
this.layoutControlGroup1,
|
|
270 |
this.tabbedControlGroup.Location = new System.Drawing.Point(0, 0); |
|
271 |
this.tabbedControlGroup.Name = "tabbedControlGroup";
|
|
272 |
this.tabbedControlGroup.SelectedTabPage = this.GroupSymbol;
|
|
273 |
this.tabbedControlGroup.Size = new System.Drawing.Size(761, 670); |
|
274 |
this.tabbedControlGroup.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
275 |
this.GroupSymbol,
|
|
275 | 276 |
this.layoutControlGroup2}); |
276 | 277 |
// |
277 |
// layoutControlGroup1
|
|
278 |
// GroupSymbol
|
|
278 | 279 |
// |
279 |
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
|
280 |
this.GroupSymbol.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
|
|
280 | 281 |
this.splitterItem2, |
281 | 282 |
this.splitterItem3, |
282 | 283 |
this.layoutControlGroup4, |
283 | 284 |
this.layoutControlGroup5, |
284 | 285 |
this.layoutControlGroup7}); |
285 |
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
|
|
286 |
this.layoutControlGroup1.Name = "layoutControlGroup1";
|
|
287 |
this.layoutControlGroup1.Size = new System.Drawing.Size(737, 624);
|
|
288 |
this.layoutControlGroup1.Text = "Symbol";
|
|
286 |
this.GroupSymbol.Location = new System.Drawing.Point(0, 0);
|
|
287 |
this.GroupSymbol.Name = "GroupSymbol";
|
|
288 |
this.GroupSymbol.Size = new System.Drawing.Size(737, 624);
|
|
289 |
this.GroupSymbol.Text = "Symbol";
|
|
289 | 290 |
// |
290 | 291 |
// splitterItem2 |
291 | 292 |
// |
... | ... | |
481 | 482 |
((System.ComponentModel.ISupportInitialize)(this.gridViewSymbol)).EndInit(); |
482 | 483 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
483 | 484 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
484 |
((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup1)).EndInit();
|
|
485 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
|
|
485 |
((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit(); |
|
486 |
((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).EndInit();
|
|
486 | 487 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem2)).EndInit(); |
487 | 488 |
((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit(); |
488 | 489 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).EndInit(); |
... | ... | |
518 | 519 |
private DevExpress.XtraEditors.SimpleButton btnClose; |
519 | 520 |
private DevExpress.XtraEditors.SimpleButton btnSave; |
520 | 521 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; |
521 |
private DevExpress.XtraLayout.TabbedControlGroup tabbedControlGroup1;
|
|
522 |
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
|
|
522 |
private DevExpress.XtraLayout.TabbedControlGroup tabbedControlGroup; |
|
523 |
private DevExpress.XtraLayout.LayoutControlGroup GroupSymbol;
|
|
523 | 524 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; |
524 | 525 |
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2; |
525 | 526 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; |
DTI_PID/APIDConverter/Form/MappingForm.cs | ||
---|---|---|
132 | 132 |
} |
133 | 133 |
#endregion |
134 | 134 |
|
135 |
#region Events |
|
135 | 136 |
private void MappingForm_Load(object sender, EventArgs e) |
136 | 137 |
{ |
137 | 138 |
Project_Info project = Project_Info.GetInstance(); |
... | ... | |
297 | 298 |
GetNodeLoopText(node.ParentNode, ref result); |
298 | 299 |
} |
299 | 300 |
} |
301 |
|
|
302 |
private void galleryControlAvevaSymbols_Gallery_ItemDoubleClick(object sender, DevExpress.XtraBars.Ribbon.GalleryItemClickEventArgs e) |
|
303 |
{ |
|
304 |
if (tabbedControlGroup.SelectedTabPage.Name == "GroupSymbol" && gridViewSymbol.FocusedRowHandle >= 0) |
|
305 |
{ |
|
306 |
gridViewSymbol.SetRowCellValue(gridViewSymbol.FocusedRowHandle, "APID_Symbol", e.Item.Caption); |
|
307 |
} |
|
308 |
} |
|
309 |
#endregion |
|
300 | 310 |
} |
301 | 311 |
} |
내보내기 Unified diff