프로젝트

일반

사용자정보

개정판 7cbb1038

ID7cbb10388d8a3650bf636dc6958aff82abf1cf37
상위 401efcff
하위 7bc8cdbf, 06b40010

gaqhf 이(가) 5년 이상 전에 추가함

dev issue #497 : Grid Option UI, Setting 추가

Change-Id: Iabb4f8b93a0fe4e905c8c935c88c8a43c462bf3c

차이점 보기:

DTI_PID/SPPIDConverter/ConverterForm.cs
212 212
            Project_Info _ProjectInfo = Project_Info.GetInstance();
213 213
            if (_ProjectInfo.Enable)
214 214
            {
215
                DataTable dt = Project_DB.SelectETCSetting();
216
                if (dt.Columns.Count > 0 && dt.Rows.Count > 0)
217
                    SPPIDUtil.ConvertToETCSetting(dt.Rows[0][0].ToString());
218
                else
219
                    SPPID_DBInfo.Clear();
215
                DataTable dt = Project_DB.SelectSetting();
216
                foreach (DataRow item in dt.Rows)
217
                {
218
                    string settingType = item["SettingType"].ToString();
219
                    if (settingType == "ETCSetting")
220
                        SPPIDUtil.ConvertToETCSetting(item["JsonString"].ToString());
221
                    else if (settingType == "GridSetting")
222
                        SPPIDUtil.ConvertToGridSetting(item["JsonString"].ToString());
223
                }
220 224
            }
221 225
        }
222 226

  
DTI_PID/SPPIDConverter/DB/Project_DB.cs
14 14
        const string SPPID_DB_INFO_TABLE = "T_SPPID_CONNECTION_INFO";
15 15
        const string SPPID_SYMBOL_MAPPING_TABLE = "T_SPPID_SYMBOL_MAPPING";
16 16
        const string SPPID_ATTRIBUTE_MAPPING_TABLE = "T_SPPID_ATTRIBUTE_MAPPING";
17
        const string SPPID_ETC_SETTING_TABLE = "T_SPPID_ETC_SETTING_TABLE";
17
        const string SPPID_SETTING_TABLE = "T_SPPID_SETTING_TABLE";
18 18
        const string SPPID_LABEL_INFO_TABLE = "T_SPPID_LABEL_INFO";
19 19

  
20 20
        const string LineProperties_TABLE = "LineProperties";
......
113 113
            return dt;
114 114
        }
115 115

  
116
        public static bool SaveETCSetting(string jsonString)
116
        public static bool SaveETCSetting(Dictionary<string,string> dicSetting)
117 117
        {
118 118
            Project_Info projectInfo = Project_Info.GetInstance();
119 119
            using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath)))
......
124 124
                    connection.Open();
125 125
                    using (SQLiteCommand cmd = connection.CreateCommand())
126 126
                    {
127
                        cmd.CommandText = string.Format("DELETE FROM {0}", SPPID_ETC_SETTING_TABLE);
127
                        cmd.CommandText = string.Format("DELETE FROM {0}", SPPID_SETTING_TABLE);
128 128
                        cmd.ExecuteNonQuery();
129 129

  
130
                        cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@jsonString)", SPPID_ETC_SETTING_TABLE);
131
                        cmd.Parameters.AddWithValue("@jsonString", jsonString);
132
                        cmd.ExecuteNonQuery();
130
                        foreach (var item in dicSetting)
131
                        {
132
                            cmd.CommandText = string.Format("INSERT INTO {0} VALUES (@jsonString, @SettingType)", SPPID_SETTING_TABLE);
133
                            cmd.Parameters.AddWithValue("@jsonString", item.Value);
134
                            cmd.Parameters.AddWithValue("@SettingType", item.Key);
135
                            cmd.ExecuteNonQuery();
136
                        }
133 137
                    }
134 138
                    connection.Close();
135 139
                }
......
146 150
            return true;
147 151
        }
148 152

  
149
        public static DataTable SelectETCSetting()
153
        public static DataTable SelectSetting()
150 154
        {
151 155
            DataTable dt = new DataTable();
152 156
            Project_Info projectInfo = Project_Info.GetInstance();
......
157 161
                    connection.Open();
158 162
                    using (SQLiteCommand cmd = connection.CreateCommand())
159 163
                    {
160
                        cmd.CommandText = string.Format("SELECT * FROM {0}", SPPID_ETC_SETTING_TABLE);
164
                        cmd.CommandText = string.Format("SELECT * FROM {0}", SPPID_SETTING_TABLE);
161 165
                        using (SQLiteDataReader dr = cmd.ExecuteReader())
162 166
                            dt.Load(dr);
163 167
                    }
......
191 195
                        cmd.CommandText = string.Format("CREATE TABLE {0} (JsonString TEXT)", SPPID_DB_INFO_TABLE);
192 196
                        cmd.ExecuteNonQuery();
193 197
                    }
194
                    if (dt.Select(string.Format("NAME = '{0}'", SPPID_ETC_SETTING_TABLE)).Length == 0)
198
                    if (dt.Select(string.Format("NAME = '{0}'", SPPID_SETTING_TABLE)).Length == 0)
195 199
                    {
196
                        cmd.CommandText = string.Format("CREATE TABLE {0} (JsonString TEXT)", SPPID_ETC_SETTING_TABLE);
200
                        cmd.CommandText = string.Format("CREATE TABLE {0} (JsonString TEXT, SettingType TEXT)", SPPID_SETTING_TABLE);
197 201
                        cmd.ExecuteNonQuery();
198 202
                    }
199 203
                    if (dt.Select(string.Format("NAME = '{0}'", SPPID_SYMBOL_MAPPING_TABLE)).Length == 0)
......
225 229
                        cmd.ExecuteNonQuery();
226 230
                    }
227 231
                }
232

  
233
                cmd.CommandText = string.Format("SELECT * FROM {0}", SPPID_SETTING_TABLE);
234
                using (SQLiteDataReader dr = cmd.ExecuteReader())
235
                using (DataTable dt = new DataTable())
236
                {
237
                    dt.Load(dr);
238
                    if (!dt.Columns.Contains("SettingType"))
239
                    {
240
                        cmd.CommandText = string.Format("ALTER TABLE {0} ADD COLUMN SettingType Text", SPPID_SETTING_TABLE);
241
                        cmd.ExecuteNonQuery();
242
                    }
243
                }
228 244
                #endregion
229 245
            }
230 246
        }
DTI_PID/SPPIDConverter/Form/MappingForm.Designer.cs
31 31
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MappingForm));
32 32
            this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl();
33 33
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
34
            this.comboBoxEditUnit = new DevExpress.XtraEditors.ComboBoxEdit();
35
            this.spinEditDensity = new DevExpress.XtraEditors.SpinEdit();
34 36
            this.checkComboBoxLineNumberLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
35 37
            this.checkComboBoxNoteLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
36 38
            this.checkComboBoxTextLocation = new DevExpress.XtraEditors.CheckedComboBoxEdit();
......
53 55
            this.treeListSPPIDTreeList = new DevExpress.XtraTreeList.TreeList();
54 56
            this.pictureEditID2Symbol = new DevExpress.XtraEditors.PictureEdit();
55 57
            this.pictureEditMapped = new DevExpress.XtraEditors.PictureEdit();
58
            this.checkEditSnapGrid = new DevExpress.XtraEditors.CheckEdit();
56 59
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
57 60
            this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
58 61
            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
......
63 66
            this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
64 67
            this.splitterItem3 = new DevExpress.XtraLayout.SplitterItem();
65 68
            this.tabbedControlGroup = new DevExpress.XtraLayout.TabbedControlGroup();
66
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
67
            this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
68
            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
69
            this.GroupGridSetting = new DevExpress.XtraLayout.LayoutControlGroup();
70
            this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
71
            this.layoutControlGroup11 = new DevExpress.XtraLayout.LayoutControlGroup();
72
            this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem();
73
            this.layoutControlItem21 = new DevExpress.XtraLayout.LayoutControlItem();
74
            this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem();
69 75
            this.GroupSymbol = new DevExpress.XtraLayout.LayoutControlGroup();
70 76
            this.splitterItem1 = new DevExpress.XtraLayout.SplitterItem();
71 77
            this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
......
83 89
            this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
84 90
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
85 91
            this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem();
92
            this.GroupAttribute = new DevExpress.XtraLayout.LayoutControlGroup();
93
            this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
94
            this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
86 95
            this.GroupETCSetting = new DevExpress.XtraLayout.LayoutControlGroup();
87 96
            this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
88 97
            this.layoutControlGroup9 = new DevExpress.XtraLayout.LayoutControlGroup();
......
98 107
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit();
99 108
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
100 109
            this.layoutControl1.SuspendLayout();
110
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditUnit.Properties)).BeginInit();
111
            ((System.ComponentModel.ISupportInitialize)(this.spinEditDensity.Properties)).BeginInit();
101 112
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxLineNumberLocation.Properties)).BeginInit();
102 113
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxNoteLocation.Properties)).BeginInit();
103 114
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxTextLocation.Properties)).BeginInit();
......
117 128
            ((System.ComponentModel.ISupportInitialize)(this.treeListSPPIDTreeList)).BeginInit();
118 129
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2Symbol.Properties)).BeginInit();
119 130
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMapped.Properties)).BeginInit();
131
            ((System.ComponentModel.ISupportInitialize)(this.checkEditSnapGrid.Properties)).BeginInit();
120 132
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
121 133
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
122 134
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
......
127 139
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
128 140
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).BeginInit();
129 141
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).BeginInit();
130
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
131
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
132
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
142
            ((System.ComponentModel.ISupportInitialize)(this.GroupGridSetting)).BeginInit();
143
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
144
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).BeginInit();
145
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit();
146
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).BeginInit();
147
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit();
133 148
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).BeginInit();
134 149
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).BeginInit();
135 150
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
......
147 162
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
148 163
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
149 164
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit();
165
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).BeginInit();
166
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
167
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
150 168
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).BeginInit();
151 169
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
152 170
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).BeginInit();
......
178 196
            // 
179 197
            // layoutControl1
180 198
            // 
199
            this.layoutControl1.Controls.Add(this.comboBoxEditUnit);
200
            this.layoutControl1.Controls.Add(this.spinEditDensity);
181 201
            this.layoutControl1.Controls.Add(this.checkComboBoxLineNumberLocation);
182 202
            this.layoutControl1.Controls.Add(this.checkComboBoxNoteLocation);
183 203
            this.layoutControl1.Controls.Add(this.checkComboBoxTextLocation);
......
196 216
            this.layoutControl1.Controls.Add(this.treeListSPPIDTreeList);
197 217
            this.layoutControl1.Controls.Add(this.pictureEditID2Symbol);
198 218
            this.layoutControl1.Controls.Add(this.pictureEditMapped);
219
            this.layoutControl1.Controls.Add(this.checkEditSnapGrid);
199 220
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
200 221
            this.layoutControl1.Location = new System.Drawing.Point(0, 27);
201 222
            this.layoutControl1.Name = "layoutControl1";
......
204 225
            this.layoutControl1.TabIndex = 2;
205 226
            this.layoutControl1.Text = "layoutControl1";
206 227
            // 
228
            // comboBoxEditUnit
229
            // 
230
            this.comboBoxEditUnit.EditValue = "Inch";
231
            this.comboBoxEditUnit.Location = new System.Drawing.Point(723, 78);
232
            this.comboBoxEditUnit.MenuManager = this.ribbonControl;
233
            this.comboBoxEditUnit.Name = "comboBoxEditUnit";
234
            this.comboBoxEditUnit.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
235
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
236
            this.comboBoxEditUnit.Properties.Items.AddRange(new object[] {
237
            "Inch"});
238
            this.comboBoxEditUnit.Size = new System.Drawing.Size(78, 20);
239
            this.comboBoxEditUnit.StyleController = this.layoutControl1;
240
            this.comboBoxEditUnit.TabIndex = 33;
241
            // 
242
            // spinEditDensity
243
            // 
244
            this.spinEditDensity.EditValue = new decimal(new int[] {
245
            25,
246
            0,
247
            0,
248
            131072});
249
            this.spinEditDensity.Location = new System.Drawing.Point(624, 78);
250
            this.spinEditDensity.MenuManager = this.ribbonControl;
251
            this.spinEditDensity.Name = "spinEditDensity";
252
            this.spinEditDensity.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
253
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
254
            this.spinEditDensity.Properties.Increment = new decimal(new int[] {
255
            1,
256
            0,
257
            0,
258
            131072});
259
            this.spinEditDensity.Size = new System.Drawing.Size(68, 20);
260
            this.spinEditDensity.StyleController = this.layoutControl1;
261
            this.spinEditDensity.TabIndex = 32;
262
            // 
207 263
            // checkComboBoxLineNumberLocation
208 264
            // 
209 265
            this.checkComboBoxLineNumberLocation.Location = new System.Drawing.Point(529, 78);
......
211 267
            this.checkComboBoxLineNumberLocation.Name = "checkComboBoxLineNumberLocation";
212 268
            this.checkComboBoxLineNumberLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
213 269
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
214
            this.checkComboBoxLineNumberLocation.Size = new System.Drawing.Size(170, 20);
270
            this.checkComboBoxLineNumberLocation.Size = new System.Drawing.Size(272, 20);
215 271
            this.checkComboBoxLineNumberLocation.StyleController = this.layoutControl1;
216 272
            this.checkComboBoxLineNumberLocation.TabIndex = 30;
217 273
            // 
......
222 278
            this.checkComboBoxNoteLocation.Name = "checkComboBoxNoteLocation";
223 279
            this.checkComboBoxNoteLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
224 280
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
225
            this.checkComboBoxNoteLocation.Size = new System.Drawing.Size(177, 20);
281
            this.checkComboBoxNoteLocation.Size = new System.Drawing.Size(279, 20);
226 282
            this.checkComboBoxNoteLocation.StyleController = this.layoutControl1;
227 283
            this.checkComboBoxNoteLocation.TabIndex = 29;
228 284
            // 
......
233 289
            this.checkComboBoxTextLocation.Name = "checkComboBoxTextLocation";
234 290
            this.checkComboBoxTextLocation.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
235 291
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
236
            this.checkComboBoxTextLocation.Size = new System.Drawing.Size(177, 20);
292
            this.checkComboBoxTextLocation.Size = new System.Drawing.Size(279, 20);
237 293
            this.checkComboBoxTextLocation.StyleController = this.layoutControl1;
238 294
            this.checkComboBoxTextLocation.TabIndex = 28;
239 295
            // 
240 296
            // btnImageRefresh
241 297
            // 
242 298
            this.btnImageRefresh.ImageOptions.SvgImage = ((DevExpress.Utils.Svg.SvgImage)(resources.GetObject("btnImageRefresh.ImageOptions.SvgImage")));
243
            this.btnImageRefresh.Location = new System.Drawing.Point(744, 641);
299
            this.btnImageRefresh.Location = new System.Drawing.Point(846, 641);
244 300
            this.btnImageRefresh.Name = "btnImageRefresh";
245
            this.btnImageRefresh.Size = new System.Drawing.Size(326, 38);
301
            this.btnImageRefresh.Size = new System.Drawing.Size(224, 38);
246 302
            this.btnImageRefresh.StyleController = this.layoutControl1;
247 303
            this.btnImageRefresh.TabIndex = 27;
248 304
            this.btnImageRefresh.Text = "Refresh SPPID Image";
......
253 309
            this.textBoxDrainValveSize.Location = new System.Drawing.Point(175, 169);
254 310
            this.textBoxDrainValveSize.MenuManager = this.ribbonControl;
255 311
            this.textBoxDrainValveSize.Name = "textBoxDrainValveSize";
256
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(524, 20);
312
            this.textBoxDrainValveSize.Size = new System.Drawing.Size(626, 20);
257 313
            this.textBoxDrainValveSize.StyleController = this.layoutControl1;
258 314
            this.textBoxDrainValveSize.TabIndex = 26;
259 315
            // 
......
300 356
            this.gridControlLineNumber.MainView = this.gridViewLineNumber;
301 357
            this.gridControlLineNumber.MenuManager = this.ribbonControl;
302 358
            this.gridControlLineNumber.Name = "gridControlLineNumber";
303
            this.gridControlLineNumber.Size = new System.Drawing.Size(663, 565);
359
            this.gridControlLineNumber.Size = new System.Drawing.Size(765, 565);
304 360
            this.gridControlLineNumber.TabIndex = 21;
305 361
            this.gridControlLineNumber.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
306 362
            this.gridViewLineNumber});
......
329 385
            this.gridControlAttribute.MainView = this.gridViewAttribute;
330 386
            this.gridControlAttribute.MenuManager = this.ribbonControl;
331 387
            this.gridControlAttribute.Name = "gridControlAttribute";
332
            this.gridControlAttribute.Size = new System.Drawing.Size(663, 589);
388
            this.gridControlAttribute.Size = new System.Drawing.Size(765, 589);
333 389
            this.gridControlAttribute.TabIndex = 19;
334 390
            this.gridControlAttribute.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
335 391
            this.gridViewAttribute});
......
347 403
            this.gridControlLine.MainView = this.gridViewLine;
348 404
            this.gridControlLine.MenuManager = this.ribbonControl;
349 405
            this.gridControlLine.Name = "gridControlLine";
350
            this.gridControlLine.Size = new System.Drawing.Size(663, 589);
406
            this.gridControlLine.Size = new System.Drawing.Size(765, 589);
351 407
            this.gridControlLine.TabIndex = 18;
352 408
            this.gridControlLine.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
353 409
            this.gridViewLine});
......
365 421
            this.gridControlSymbol.MainView = this.gridViewSymbol;
366 422
            this.gridControlSymbol.MenuManager = this.ribbonControl;
367 423
            this.gridControlSymbol.Name = "gridControlSymbol";
368
            this.gridControlSymbol.Size = new System.Drawing.Size(663, 269);
424
            this.gridControlSymbol.Size = new System.Drawing.Size(765, 257);
369 425
            this.gridControlSymbol.TabIndex = 16;
370 426
            this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
371 427
            this.gridViewSymbol});
......
381 437
            // 
382 438
            // pictureEditSPPIDSymbol
383 439
            // 
384
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(756, 375);
440
            this.pictureEditSPPIDSymbol.Location = new System.Drawing.Point(858, 364);
385 441
            this.pictureEditSPPIDSymbol.MenuManager = this.ribbonControl;
386 442
            this.pictureEditSPPIDSymbol.Name = "pictureEditSPPIDSymbol";
387 443
            this.pictureEditSPPIDSymbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
388 444
            this.pictureEditSPPIDSymbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
389
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(302, 250);
445
            this.pictureEditSPPIDSymbol.Size = new System.Drawing.Size(200, 261);
390 446
            this.pictureEditSPPIDSymbol.StyleController = this.layoutControl1;
391 447
            this.pictureEditSPPIDSymbol.TabIndex = 15;
392 448
            // 
......
404 460
            // treeListSPPIDTreeList
405 461
            // 
406 462
            this.treeListSPPIDTreeList.Cursor = System.Windows.Forms.Cursors.Default;
407
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(744, 43);
463
            this.treeListSPPIDTreeList.Location = new System.Drawing.Point(846, 43);
408 464
            this.treeListSPPIDTreeList.Name = "treeListSPPIDTreeList";
409
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(326, 292);
465
            this.treeListSPPIDTreeList.Size = new System.Drawing.Size(224, 281);
410 466
            this.treeListSPPIDTreeList.TabIndex = 12;
411 467
            this.treeListSPPIDTreeList.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.treeListSPPIDTreeList_FocusedNodeChanged);
412 468
            this.treeListSPPIDTreeList.DoubleClick += new System.EventHandler(this.treeListSPPIDTreeList_DoubleClick);
413 469
            // 
414 470
            // pictureEditID2Symbol
415 471
            // 
416
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 399);
472
            this.pictureEditID2Symbol.Location = new System.Drawing.Point(36, 387);
417 473
            this.pictureEditID2Symbol.MenuManager = this.ribbonControl;
418 474
            this.pictureEditID2Symbol.Name = "pictureEditID2Symbol";
419 475
            this.pictureEditID2Symbol.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
420 476
            this.pictureEditID2Symbol.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
421
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 268);
477
            this.pictureEditID2Symbol.Size = new System.Drawing.Size(316, 280);
422 478
            this.pictureEditID2Symbol.StyleController = this.layoutControl1;
423 479
            this.pictureEditID2Symbol.TabIndex = 4;
424 480
            // 
425 481
            // pictureEditMapped
426 482
            // 
427
            this.pictureEditMapped.Location = new System.Drawing.Point(385, 399);
483
            this.pictureEditMapped.Location = new System.Drawing.Point(385, 387);
428 484
            this.pictureEditMapped.MenuManager = this.ribbonControl;
429 485
            this.pictureEditMapped.Name = "pictureEditMapped";
430 486
            this.pictureEditMapped.Properties.ShowCameraMenuItem = DevExpress.XtraEditors.Controls.CameraMenuItemVisibility.Auto;
431 487
            this.pictureEditMapped.Properties.SizeMode = DevExpress.XtraEditors.Controls.PictureSizeMode.Squeeze;
432
            this.pictureEditMapped.Size = new System.Drawing.Size(314, 268);
488
            this.pictureEditMapped.Size = new System.Drawing.Size(416, 280);
433 489
            this.pictureEditMapped.StyleController = this.layoutControl1;
434 490
            this.pictureEditMapped.TabIndex = 5;
435 491
            // 
492
            // checkEditSnapGrid
493
            // 
494
            this.checkEditSnapGrid.EditValue = true;
495
            this.checkEditSnapGrid.Location = new System.Drawing.Point(36, 78);
496
            this.checkEditSnapGrid.MenuManager = this.ribbonControl;
497
            this.checkEditSnapGrid.Name = "checkEditSnapGrid";
498
            this.checkEditSnapGrid.Properties.Caption = "Use Snap Grid";
499
            this.checkEditSnapGrid.Size = new System.Drawing.Size(539, 19);
500
            this.checkEditSnapGrid.StyleController = this.layoutControl1;
501
            this.checkEditSnapGrid.TabIndex = 31;
502
            this.checkEditSnapGrid.CheckedChanged += new System.EventHandler(this.checkEditSnapGrid_CheckedChanged);
503
            // 
436 504
            // Root
437 505
            // 
438 506
            this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
......
456 524
            this.layoutControlGroup5,
457 525
            this.splitterItem5,
458 526
            this.layoutControlItem15});
459
            this.layoutControlGroup2.Location = new System.Drawing.Point(720, 0);
527
            this.layoutControlGroup2.Location = new System.Drawing.Point(822, 0);
460 528
            this.layoutControlGroup2.Name = "layoutControlGroup2";
461
            this.layoutControlGroup2.Size = new System.Drawing.Size(354, 683);
529
            this.layoutControlGroup2.Size = new System.Drawing.Size(252, 683);
462 530
            this.layoutControlGroup2.Text = "SPPID Symbol";
463 531
            // 
464 532
            // layoutControlItem8
......
466 534
            this.layoutControlItem8.Control = this.treeListSPPIDTreeList;
467 535
            this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
468 536
            this.layoutControlItem8.Name = "layoutControlItem8";
469
            this.layoutControlItem8.Size = new System.Drawing.Size(330, 296);
537
            this.layoutControlItem8.Size = new System.Drawing.Size(228, 285);
470 538
            this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
471 539
            this.layoutControlItem8.TextVisible = false;
472 540
            // 
......
474 542
            // 
475 543
            this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
476 544
            this.layoutControlItem9});
477
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 301);
545
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 290);
478 546
            this.layoutControlGroup5.Name = "layoutControlGroup5";
479
            this.layoutControlGroup5.Size = new System.Drawing.Size(330, 297);
547
            this.layoutControlGroup5.Size = new System.Drawing.Size(228, 308);
480 548
            this.layoutControlGroup5.Text = "SPPID Image";
481 549
            // 
482 550
            // layoutControlItem9
......
484 552
            this.layoutControlItem9.Control = this.pictureEditSPPIDSymbol;
485 553
            this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
486 554
            this.layoutControlItem9.Name = "layoutControlItem9";
487
            this.layoutControlItem9.Size = new System.Drawing.Size(306, 254);
555
            this.layoutControlItem9.Size = new System.Drawing.Size(204, 265);
488 556
            this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
489 557
            this.layoutControlItem9.TextVisible = false;
490 558
            // 
491 559
            // splitterItem5
492 560
            // 
493 561
            this.splitterItem5.AllowHotTrack = true;
494
            this.splitterItem5.Location = new System.Drawing.Point(0, 296);
562
            this.splitterItem5.Location = new System.Drawing.Point(0, 285);
495 563
            this.splitterItem5.Name = "splitterItem5";
496
            this.splitterItem5.Size = new System.Drawing.Size(330, 5);
564
            this.splitterItem5.Size = new System.Drawing.Size(228, 5);
497 565
            // 
498 566
            // layoutControlItem15
499 567
            // 
500 568
            this.layoutControlItem15.Control = this.btnImageRefresh;
501 569
            this.layoutControlItem15.Location = new System.Drawing.Point(0, 598);
502 570
            this.layoutControlItem15.Name = "layoutControlItem15";
503
            this.layoutControlItem15.Size = new System.Drawing.Size(330, 42);
571
            this.layoutControlItem15.Size = new System.Drawing.Size(228, 42);
504 572
            this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
505 573
            this.layoutControlItem15.TextVisible = false;
506 574
            // 
......
515 583
            // splitterItem3
516 584
            // 
517 585
            this.splitterItem3.AllowHotTrack = true;
518
            this.splitterItem3.Location = new System.Drawing.Point(715, 0);
586
            this.splitterItem3.Location = new System.Drawing.Point(817, 0);
519 587
            this.splitterItem3.Name = "splitterItem3";
520 588
            this.splitterItem3.Size = new System.Drawing.Size(5, 683);
521 589
            // 
......
524 592
            this.tabbedControlGroup.Location = new System.Drawing.Point(0, 0);
525 593
            this.tabbedControlGroup.Name = "tabbedControlGroup";
526 594
            this.tabbedControlGroup.SelectedTabPage = this.GroupSymbol;
527
            this.tabbedControlGroup.Size = new System.Drawing.Size(715, 683);
595
            this.tabbedControlGroup.Size = new System.Drawing.Size(817, 683);
528 596
            this.tabbedControlGroup.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
529 597
            this.GroupSymbol,
530 598
            this.GroupLine,
531 599
            this.GroupLineNumber,
532 600
            this.GroupAttribute,
533
            this.GroupETCSetting});
534
            // 
535
            // GroupAttribute
536
            // 
537
            this.GroupAttribute.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
538
            this.layoutControlGroup7});
539
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
540
            this.GroupAttribute.Name = "GroupAttribute";
541
            this.GroupAttribute.Size = new System.Drawing.Size(691, 636);
542
            this.GroupAttribute.Text = "Attribute";
543
            // 
544
            // layoutControlGroup7
545
            // 
546
            this.layoutControlGroup7.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
547
            this.layoutControlItem11});
548
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
549
            this.layoutControlGroup7.Name = "layoutControlGroup7";
550
            this.layoutControlGroup7.Size = new System.Drawing.Size(691, 636);
551
            this.layoutControlGroup7.Text = "ID2 Attribute List";
552
            // 
553
            // layoutControlItem11
554
            // 
555
            this.layoutControlItem11.Control = this.gridControlAttribute;
556
            this.layoutControlItem11.Location = new System.Drawing.Point(0, 0);
557
            this.layoutControlItem11.Name = "layoutControlItem11";
558
            this.layoutControlItem11.Size = new System.Drawing.Size(667, 593);
559
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
560
            this.layoutControlItem11.TextVisible = false;
601
            this.GroupETCSetting,
602
            this.GroupGridSetting});
603
            // 
604
            // GroupGridSetting
605
            // 
606
            this.GroupGridSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
607
            this.emptySpaceItem4,
608
            this.layoutControlGroup11});
609
            this.GroupGridSetting.Location = new System.Drawing.Point(0, 0);
610
            this.GroupGridSetting.Name = "GroupGridSetting";
611
            this.GroupGridSetting.Size = new System.Drawing.Size(793, 636);
612
            this.GroupGridSetting.Text = "Grid Setting";
613
            // 
614
            // emptySpaceItem4
615
            // 
616
            this.emptySpaceItem4.AllowHotTrack = false;
617
            this.emptySpaceItem4.Location = new System.Drawing.Point(0, 67);
618
            this.emptySpaceItem4.Name = "emptySpaceItem4";
619
            this.emptySpaceItem4.Size = new System.Drawing.Size(793, 569);
620
            this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
621
            // 
622
            // layoutControlGroup11
623
            // 
624
            this.layoutControlGroup11.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
625
            this.layoutControlItem20,
626
            this.layoutControlItem21,
627
            this.layoutControlItem19});
628
            this.layoutControlGroup11.Location = new System.Drawing.Point(0, 0);
629
            this.layoutControlGroup11.Name = "layoutControlGroup11";
630
            this.layoutControlGroup11.Size = new System.Drawing.Size(793, 67);
631
            this.layoutControlGroup11.Text = "Snap Grid";
632
            // 
633
            // layoutControlItem20
634
            // 
635
            this.layoutControlItem20.Control = this.spinEditDensity;
636
            this.layoutControlItem20.Location = new System.Drawing.Point(543, 0);
637
            this.layoutControlItem20.Name = "layoutControlItem20";
638
            this.layoutControlItem20.Size = new System.Drawing.Size(117, 24);
639
            this.layoutControlItem20.Text = "Density";
640
            this.layoutControlItem20.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
641
            this.layoutControlItem20.TextSize = new System.Drawing.Size(40, 14);
642
            this.layoutControlItem20.TextToControlDistance = 5;
643
            // 
644
            // layoutControlItem21
645
            // 
646
            this.layoutControlItem21.Control = this.comboBoxEditUnit;
647
            this.layoutControlItem21.Location = new System.Drawing.Point(660, 0);
648
            this.layoutControlItem21.Name = "layoutControlItem21";
649
            this.layoutControlItem21.Size = new System.Drawing.Size(109, 24);
650
            this.layoutControlItem21.Text = "Unit";
651
            this.layoutControlItem21.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
652
            this.layoutControlItem21.TextSize = new System.Drawing.Size(22, 14);
653
            this.layoutControlItem21.TextToControlDistance = 5;
654
            // 
655
            // layoutControlItem19
656
            // 
657
            this.layoutControlItem19.Control = this.checkEditSnapGrid;
658
            this.layoutControlItem19.Location = new System.Drawing.Point(0, 0);
659
            this.layoutControlItem19.Name = "layoutControlItem19";
660
            this.layoutControlItem19.Size = new System.Drawing.Size(543, 24);
661
            this.layoutControlItem19.TextSize = new System.Drawing.Size(0, 0);
662
            this.layoutControlItem19.TextVisible = false;
561 663
            // 
562 664
            // GroupSymbol
563 665
            // 
......
569 671
            this.layoutControlGroup1});
570 672
            this.GroupSymbol.Location = new System.Drawing.Point(0, 0);
571 673
            this.GroupSymbol.Name = "GroupSymbol";
572
            this.GroupSymbol.Size = new System.Drawing.Size(691, 636);
674
            this.GroupSymbol.Size = new System.Drawing.Size(793, 636);
573 675
            this.GroupSymbol.Text = "Symbol";
574 676
            // 
575 677
            // splitterItem1
576 678
            // 
577 679
            this.splitterItem1.AllowHotTrack = true;
578
            this.splitterItem1.Location = new System.Drawing.Point(0, 316);
680
            this.splitterItem1.Location = new System.Drawing.Point(0, 304);
579 681
            this.splitterItem1.Name = "splitterItem1";
580
            this.splitterItem1.Size = new System.Drawing.Size(691, 5);
682
            this.splitterItem1.Size = new System.Drawing.Size(793, 5);
581 683
            // 
582 684
            // layoutControlGroup3
583 685
            // 
584 686
            this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
585 687
            this.layoutControlItem1});
586
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 321);
688
            this.layoutControlGroup3.Location = new System.Drawing.Point(0, 309);
587 689
            this.layoutControlGroup3.Name = "layoutControlGroup3";
588
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 315);
690
            this.layoutControlGroup3.Size = new System.Drawing.Size(344, 327);
589 691
            this.layoutControlGroup3.Text = "ID2 Image";
590 692
            // 
591 693
            // layoutControlItem1
......
593 695
            this.layoutControlItem1.Control = this.pictureEditID2Symbol;
594 696
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
595 697
            this.layoutControlItem1.Name = "layoutControlItem1";
596
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 272);
698
            this.layoutControlItem1.Size = new System.Drawing.Size(320, 284);
597 699
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
598 700
            this.layoutControlItem1.TextVisible = false;
599 701
            // 
......
601 703
            // 
602 704
            this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
603 705
            this.layoutControlItem2});
604
            this.layoutControlGroup4.Location = new System.Drawing.Point(349, 321);
706
            this.layoutControlGroup4.Location = new System.Drawing.Point(349, 309);
605 707
            this.layoutControlGroup4.Name = "layoutControlGroup4";
606
            this.layoutControlGroup4.Size = new System.Drawing.Size(342, 315);
708
            this.layoutControlGroup4.Size = new System.Drawing.Size(444, 327);
607 709
            this.layoutControlGroup4.Text = "Mapped Image";
608 710
            // 
609 711
            // layoutControlItem2
......
611 713
            this.layoutControlItem2.Control = this.pictureEditMapped;
612 714
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
613 715
            this.layoutControlItem2.Name = "layoutControlItem2";
614
            this.layoutControlItem2.Size = new System.Drawing.Size(318, 272);
716
            this.layoutControlItem2.Size = new System.Drawing.Size(420, 284);
615 717
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
616 718
            this.layoutControlItem2.TextVisible = false;
617 719
            // 
618 720
            // splitterItem4
619 721
            // 
620 722
            this.splitterItem4.AllowHotTrack = true;
621
            this.splitterItem4.Location = new System.Drawing.Point(344, 321);
723
            this.splitterItem4.Location = new System.Drawing.Point(344, 309);
622 724
            this.splitterItem4.Name = "splitterItem4";
623
            this.splitterItem4.Size = new System.Drawing.Size(5, 315);
725
            this.splitterItem4.Size = new System.Drawing.Size(5, 327);
624 726
            // 
625 727
            // layoutControlGroup1
626 728
            // 
......
628 730
            this.layoutControlItem6});
629 731
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
630 732
            this.layoutControlGroup1.Name = "layoutControlGroup1";
631
            this.layoutControlGroup1.Size = new System.Drawing.Size(691, 316);
733
            this.layoutControlGroup1.Size = new System.Drawing.Size(793, 304);
632 734
            this.layoutControlGroup1.Text = "ID2 Symbol List";
633 735
            // 
634 736
            // layoutControlItem6
......
636 738
            this.layoutControlItem6.Control = this.gridControlSymbol;
637 739
            this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
638 740
            this.layoutControlItem6.Name = "layoutControlItem6";
639
            this.layoutControlItem6.Size = new System.Drawing.Size(667, 273);
741
            this.layoutControlItem6.Size = new System.Drawing.Size(769, 261);
640 742
            this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
641 743
            this.layoutControlItem6.TextVisible = false;
642 744
            // 
......
646 748
            this.layoutControlGroup6});
647 749
            this.GroupLine.Location = new System.Drawing.Point(0, 0);
648 750
            this.GroupLine.Name = "GroupLine";
649
            this.GroupLine.Size = new System.Drawing.Size(691, 636);
751
            this.GroupLine.Size = new System.Drawing.Size(793, 636);
650 752
            this.GroupLine.Text = "Line";
651 753
            // 
652 754
            // layoutControlGroup6
......
655 757
            this.layoutControlItem10});
656 758
            this.layoutControlGroup6.Location = new System.Drawing.Point(0, 0);
657 759
            this.layoutControlGroup6.Name = "layoutControlGroup6";
658
            this.layoutControlGroup6.Size = new System.Drawing.Size(691, 636);
760
            this.layoutControlGroup6.Size = new System.Drawing.Size(793, 636);
659 761
            this.layoutControlGroup6.Text = "ID2 Line List";
660 762
            // 
661 763
            // layoutControlItem10
......
663 765
            this.layoutControlItem10.Control = this.gridControlLine;
664 766
            this.layoutControlItem10.Location = new System.Drawing.Point(0, 0);
665 767
            this.layoutControlItem10.Name = "layoutControlItem10";
666
            this.layoutControlItem10.Size = new System.Drawing.Size(667, 593);
768
            this.layoutControlItem10.Size = new System.Drawing.Size(769, 593);
667 769
            this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
668 770
            this.layoutControlItem10.TextVisible = false;
669 771
            // 
......
673 775
            this.layoutControlGroup8});
674 776
            this.GroupLineNumber.Location = new System.Drawing.Point(0, 0);
675 777
            this.GroupLineNumber.Name = "GroupLineNumber";
676
            this.GroupLineNumber.Size = new System.Drawing.Size(691, 636);
778
            this.GroupLineNumber.Size = new System.Drawing.Size(793, 636);
677 779
            this.GroupLineNumber.Text = "Line Number";
678 780
            // 
679 781
            // layoutControlGroup8
......
684 786
            this.layoutControlItem18});
685 787
            this.layoutControlGroup8.Location = new System.Drawing.Point(0, 0);
686 788
            this.layoutControlGroup8.Name = "layoutControlGroup8";
687
            this.layoutControlGroup8.Size = new System.Drawing.Size(691, 636);
789
            this.layoutControlGroup8.Size = new System.Drawing.Size(793, 636);
688 790
            this.layoutControlGroup8.Text = "ID2 Line Number";
689 791
            // 
690 792
            // layoutControlItem13
......
692 794
            this.layoutControlItem13.Control = this.gridControlLineNumber;
693 795
            this.layoutControlItem13.Location = new System.Drawing.Point(0, 24);
694 796
            this.layoutControlItem13.Name = "layoutControlItem13";
695
            this.layoutControlItem13.Size = new System.Drawing.Size(667, 569);
797
            this.layoutControlItem13.Size = new System.Drawing.Size(769, 569);
696 798
            this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
697 799
            this.layoutControlItem13.TextVisible = false;
698 800
            // 
......
712 814
            this.layoutControlItem18.Control = this.checkComboBoxLineNumberLocation;
713 815
            this.layoutControlItem18.Location = new System.Drawing.Point(410, 0);
714 816
            this.layoutControlItem18.Name = "layoutControlItem18";
715
            this.layoutControlItem18.Size = new System.Drawing.Size(257, 24);
817
            this.layoutControlItem18.Size = new System.Drawing.Size(359, 24);
716 818
            this.layoutControlItem18.Text = "Label Location";
717 819
            this.layoutControlItem18.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
718 820
            this.layoutControlItem18.TextSize = new System.Drawing.Size(78, 14);
719 821
            this.layoutControlItem18.TextToControlDistance = 5;
720 822
            // 
823
            // GroupAttribute
824
            // 
825
            this.GroupAttribute.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
826
            this.layoutControlGroup7});
827
            this.GroupAttribute.Location = new System.Drawing.Point(0, 0);
828
            this.GroupAttribute.Name = "GroupAttribute";
829
            this.GroupAttribute.Size = new System.Drawing.Size(793, 636);
830
            this.GroupAttribute.Text = "Attribute";
831
            // 
832
            // layoutControlGroup7
833
            // 
834
            this.layoutControlGroup7.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
835
            this.layoutControlItem11});
836
            this.layoutControlGroup7.Location = new System.Drawing.Point(0, 0);
837
            this.layoutControlGroup7.Name = "layoutControlGroup7";
838
            this.layoutControlGroup7.Size = new System.Drawing.Size(793, 636);
839
            this.layoutControlGroup7.Text = "ID2 Attribute List";
840
            // 
841
            // layoutControlItem11
842
            // 
843
            this.layoutControlItem11.Control = this.gridControlAttribute;
844
            this.layoutControlItem11.Location = new System.Drawing.Point(0, 0);
845
            this.layoutControlItem11.Name = "layoutControlItem11";
846
            this.layoutControlItem11.Size = new System.Drawing.Size(769, 593);
847
            this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
848
            this.layoutControlItem11.TextVisible = false;
849
            // 
721 850
            // GroupETCSetting
722 851
            // 
723 852
            this.GroupETCSetting.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
......
726 855
            this.layoutControlGroup10});
727 856
            this.GroupETCSetting.Location = new System.Drawing.Point(0, 0);
728 857
            this.GroupETCSetting.Name = "GroupETCSetting";
729
            this.GroupETCSetting.Size = new System.Drawing.Size(691, 636);
858
            this.GroupETCSetting.Size = new System.Drawing.Size(793, 636);
730 859
            this.GroupETCSetting.Text = "ETC Setting";
731 860
            // 
732 861
            // emptySpaceItem3
......
734 863
            this.emptySpaceItem3.AllowHotTrack = false;
735 864
            this.emptySpaceItem3.Location = new System.Drawing.Point(0, 158);
736 865
            this.emptySpaceItem3.Name = "emptySpaceItem3";
737
            this.emptySpaceItem3.Size = new System.Drawing.Size(691, 478);
866
            this.emptySpaceItem3.Size = new System.Drawing.Size(793, 478);
738 867
            this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
739 868
            // 
740 869
            // layoutControlGroup9
......
746 875
            this.layoutControlItem17});
747 876
            this.layoutControlGroup9.Location = new System.Drawing.Point(0, 0);
748 877
            this.layoutControlGroup9.Name = "layoutControlGroup9";
749
            this.layoutControlGroup9.Size = new System.Drawing.Size(691, 91);
878
            this.layoutControlGroup9.Size = new System.Drawing.Size(793, 91);
750 879
            this.layoutControlGroup9.Text = "Text && Note Setting";
751 880
            // 
752 881
            // layoutControlItem5
......
772 901
            this.layoutControlItem16.Control = this.checkComboBoxTextLocation;
773 902
            this.layoutControlItem16.Location = new System.Drawing.Point(403, 0);
774 903
            this.layoutControlItem16.Name = "layoutControlItem16";
775
            this.layoutControlItem16.Size = new System.Drawing.Size(264, 24);
904
            this.layoutControlItem16.Size = new System.Drawing.Size(366, 24);
776 905
            this.layoutControlItem16.Text = "Label Location";
777 906
            this.layoutControlItem16.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
778 907
            this.layoutControlItem16.TextSize = new System.Drawing.Size(78, 14);
......
783 912
            this.layoutControlItem17.Control = this.checkComboBoxNoteLocation;
784 913
            this.layoutControlItem17.Location = new System.Drawing.Point(403, 24);
785 914
            this.layoutControlItem17.Name = "layoutControlItem17";
786
            this.layoutControlItem17.Size = new System.Drawing.Size(264, 24);
915
            this.layoutControlItem17.Size = new System.Drawing.Size(366, 24);
787 916
            this.layoutControlItem17.Text = "Label Location";
788 917
            this.layoutControlItem17.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize;
789 918
            this.layoutControlItem17.TextSize = new System.Drawing.Size(78, 14);
......
795 924
            this.layoutControlItem14});
796 925
            this.layoutControlGroup10.Location = new System.Drawing.Point(0, 91);
797 926
            this.layoutControlGroup10.Name = "layoutControlGroup10";
798
            this.layoutControlGroup10.Size = new System.Drawing.Size(691, 67);
927
            this.layoutControlGroup10.Size = new System.Drawing.Size(793, 67);
799 928
            this.layoutControlGroup10.Text = "Drain Valve Setting";
800 929
            // 
801 930
            // layoutControlItem14
......
803 932
            this.layoutControlItem14.Control = this.textBoxDrainValveSize;
804 933
            this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
805 934
            this.layoutControlItem14.Name = "layoutControlItem14";
806
            this.layoutControlItem14.Size = new System.Drawing.Size(667, 24);
935
            this.layoutControlItem14.Size = new System.Drawing.Size(769, 24);
807 936
            this.layoutControlItem14.Text = "Drain Valve Size";
808 937
            this.layoutControlItem14.TextSize = new System.Drawing.Size(136, 14);
809 938
            // 
......
858 987
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit();
859 988
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
860 989
            this.layoutControl1.ResumeLayout(false);
990
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxEditUnit.Properties)).EndInit();
991
            ((System.ComponentModel.ISupportInitialize)(this.spinEditDensity.Properties)).EndInit();
861 992
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxLineNumberLocation.Properties)).EndInit();
862 993
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxNoteLocation.Properties)).EndInit();
863 994
            ((System.ComponentModel.ISupportInitialize)(this.checkComboBoxTextLocation.Properties)).EndInit();
......
877 1008
            ((System.ComponentModel.ISupportInitialize)(this.treeListSPPIDTreeList)).EndInit();
878 1009
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditID2Symbol.Properties)).EndInit();
879 1010
            ((System.ComponentModel.ISupportInitialize)(this.pictureEditMapped.Properties)).EndInit();
1011
            ((System.ComponentModel.ISupportInitialize)(this.checkEditSnapGrid.Properties)).EndInit();
880 1012
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
881 1013
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
882 1014
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
......
887 1019
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
888 1020
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem3)).EndInit();
889 1021
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup)).EndInit();
890
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
891
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
892
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
1022
            ((System.ComponentModel.ISupportInitialize)(this.GroupGridSetting)).EndInit();
1023
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
1024
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup11)).EndInit();
1025
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit();
1026
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem21)).EndInit();
1027
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit();
893 1028
            ((System.ComponentModel.ISupportInitialize)(this.GroupSymbol)).EndInit();
894 1029
            ((System.ComponentModel.ISupportInitialize)(this.splitterItem1)).EndInit();
895 1030
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
......
907 1042
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
908 1043
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
909 1044
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit();
1045
            ((System.ComponentModel.ISupportInitialize)(this.GroupAttribute)).EndInit();
1046
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
1047
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
910 1048
            ((System.ComponentModel.ISupportInitialize)(this.GroupETCSetting)).EndInit();
911 1049
            ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
912 1050
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup9)).EndInit();
......
992 1130
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17;
993 1131
        private DevExpress.XtraEditors.CheckedComboBoxEdit checkComboBoxLineNumberLocation;
994 1132
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18;
1133
        private DevExpress.XtraLayout.LayoutControlGroup GroupGridSetting;
1134
        private DevExpress.XtraEditors.CheckEdit checkEditSnapGrid;
1135
        private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
1136
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup11;
1137
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19;
1138
        private DevExpress.XtraEditors.SpinEdit spinEditDensity;
1139
        private DevExpress.XtraEditors.ComboBoxEdit comboBoxEditUnit;
1140
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem20;
1141
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem21;
995 1142
    }
996 1143
}
DTI_PID/SPPIDConverter/Form/MappingForm.cs
87 87
            InitID2GridView();
88 88
            InitSPPIDSymbolTree();
89 89
            InitETCSetting();
90
            InitGridSetting();
90 91

  
91 92
            this.gridViewSymbol.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.gridViewID2Symbol_FocusedRowChanged);
92 93
            textBoxLineNumberPath.Properties.Buttons[0].Kind = ButtonPredefines.Glyph;
......
267 268
            checkComboBoxLineNumberLocation.EditValue = _ETCSetting.LineNumberLocation;
268 269
        }
269 270

  
271
        private void InitGridSetting()
272
        {
273
            GridSetting _GridSetting = GridSetting.GetInstance();
274
            checkEditSnapGrid.Checked = _GridSetting.UseSnapGrid;
275
            spinEditDensity.Value = Convert.ToDecimal(_GridSetting.Density);
276
            comboBoxEditUnit.SelectedText = _GridSetting.Unit.ToString();
277
        }
278

  
270 279
        private void textBoxETC_ButtonClick(object sender, ButtonPressedEventArgs e)
271 280
        {
272 281
            textBoxTextSymbolPath.Properties.Buttons[0].Image = Resources.pencolor_16x16;
......
363 372
                labelDatas.Add(new Tuple<string, int, bool>(_uid, _LOCATION, _LEADERLINE));
364 373
            }
365 374

  
366
            #region ETC Setting
375
            #region Setting
376
            Dictionary<string, string> dicSetting = new Dictionary<string, string>();
377

  
367 378
            ETCSetting _ETCSetting = new ETCSetting();
368 379
            _ETCSetting.TextSymbolPath = textBoxTextSymbolPath.Text;
369 380
            _ETCSetting.NoteSymbolPath = textBoxNoteSymbolPath.Text;
......
372 383
            _ETCSetting.NoteLocation = (Model.Location)checkComboBoxNoteLocation.EditValue;
373 384
            _ETCSetting.LineNumberLocation = (Model.Location)checkComboBoxLineNumberLocation.EditValue;
374 385
            string jsonString = JsonConvert.SerializeObject(_ETCSetting);
386
            dicSetting.Add("ETCSetting", jsonString);
387

  
388
            GridSetting _GridSetting = new GridSetting();
389
            _GridSetting.UseSnapGrid = checkEditSnapGrid.Checked;
390
            _GridSetting.Density = Convert.ToDouble(spinEditDensity.Value);
391
            _GridSetting.Unit = GridUnit.Inch;
392
            jsonString = JsonConvert.SerializeObject(_GridSetting);
393
            dicSetting.Add("GridSetting", jsonString);
375 394
            #endregion
376 395

  
377 396
            if (Project_DB.InsertSymbolMapping(symbolDatas) &&
378 397
                Project_DB.InsertAttributeMapping(attributeDatas) &&
379 398
                Project_DB.InsertLabelInfoMapping(labelDatas) &&
380
                Project_DB.SaveETCSetting(jsonString))
399
                Project_DB.SaveETCSetting(dicSetting))
381 400
                MessageBox.Show(Msg.SuccessSave, Msg.Information, MessageBoxButtons.OK, MessageBoxIcon.Information);
382 401
            else
383 402
                MessageBox.Show(Msg.FailSave, Msg.Warning, MessageBoxButtons.OK, MessageBoxIcon.Warning);
......
529 548
                    pictureEditSPPIDSymbol.Image = Image.FromFile(_ID2ImagePath);
530 549
            }
531 550
        }
551

  
552
        private void checkEditSnapGrid_CheckedChanged(object sender, EventArgs e)
553
        {
554
            spinEditDensity.Enabled = checkEditSnapGrid.Checked;
555
            comboBoxEditUnit.Enabled = checkEditSnapGrid.Checked;
556
        }
532 557
    }
533 558
}
DTI_PID/SPPIDConverter/SPPIDConverter.csproj
209 209
    <Compile Include="Form\SPPIDSplashScreen.Designer.cs">
210 210
      <DependentUpon>SPPIDSplashScreen.cs</DependentUpon>
211 211
    </Compile>
212
    <Compile Include="SPPIDModel\GridSetting.cs" />
212 213
    <Compile Include="Wrapper\SPPIDConverterWrapper.cs">
213 214
      <SubType>Form</SubType>
214 215
    </Compile>
DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs
75 75
            return true;
76 76
        }
77 77

  
78
        public static bool ConvertToGridSetting(string jsonString)
79
        {
80
            GridSetting _GridSetting = GridSetting.GetInstance();
81
            try
82
            {
83
                GridSetting jsonGridSetting = JsonConvert.DeserializeObject<GridSetting>(jsonString);
84

  
85
                _GridSetting.UseSnapGrid = jsonGridSetting.UseSnapGrid;
86
                _GridSetting.Density = jsonGridSetting.Density;
87
                _GridSetting.Unit = jsonGridSetting.Unit;
88
            }
89
            catch (Exception ex)
90
            {
91
                return false;
92
            }
93
            return true;
94
        }
95

  
78 96
        public static bool ConvertPointBystring(string sPoint, ref double dX, ref double dY)
79 97
        {
80 98
            try

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)