개정판 a2ab8a90
issue #000: 추가 기능 Setting UI 추가
Change-Id: Ia3330d0e17cc32b26d8c27450934e82c68173344
DTI_PID/ID2PSN/App.config | ||
---|---|---|
3 | 3 |
<configSections> |
4 | 4 |
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
5 | 5 |
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
6 |
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > |
|
7 |
<section name="ID2PSN.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> |
|
8 |
</sectionGroup> |
|
6 | 9 |
</configSections> |
7 | 10 |
<startup> |
8 | 11 |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /> |
... | ... | |
20 | 23 |
<remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories> |
21 | 24 |
</system.data> |
22 | 25 | |
26 |
<userSettings> |
|
27 |
<ID2PSN.Properties.Settings> |
|
28 |
<setting name="EquipTagAttribute" serializeAs="String"> |
|
29 |
<value /> |
|
30 |
</setting> |
|
31 |
<setting name="UseEquipTag" serializeAs="String"> |
|
32 |
<value>False</value> |
|
33 |
</setting> |
|
34 |
<setting name="PBSSetting" serializeAs="String"> |
|
35 |
<value /> |
|
36 |
</setting> |
|
37 |
<setting name="PBSSettingValue" serializeAs="String"> |
|
38 |
<value /> |
|
39 |
</setting> |
|
40 |
<setting name="PBSSettingStartValue" serializeAs="String"> |
|
41 |
<value>1</value> |
|
42 |
</setting> |
|
43 |
<setting name="PBSSettingEndValue" serializeAs="String"> |
|
44 |
<value>2</value> |
|
45 |
</setting> |
|
46 |
<setting name="TieInAttribute" serializeAs="String"> |
|
47 |
<value /> |
|
48 |
</setting> |
|
49 |
<setting name="UseTieIn" serializeAs="String"> |
|
50 |
<value>False</value> |
|
51 |
</setting> |
|
52 |
</ID2PSN.Properties.Settings> |
|
53 |
</userSettings> |
|
23 | 54 |
</configuration> |
DTI_PID/ID2PSN/DB.cs | ||
---|---|---|
17 | 17 |
const string PSN_VIEW = "T_PSN_VIEW"; |
18 | 18 |
const string PSN_TRANSFORMKEYWORD_SETTING = "T_PSN_TRANSFORMKEYWORD_SETTING"; |
19 | 19 |
const string PSN_VALVEGROUP_SETTING = "SPPIDValveGroup"; |
20 | ||
20 |
const string PSN_MULTIWAY_SETTING = "T_PSN_MULTIWAY_SETTING"; |
|
21 | 21 |
const string PSN_PATHITEMS = "SPPIDPathItem"; |
22 | 22 |
const string PSN_SEQUENCEDATA = "SPPIDSequenceData"; |
23 | 23 |
const string PSN_PIPESYSTEMNETWORK = "SPPIDPipeSystemNetwork"; |
... | ... | |
400 | 400 |
AddColumn(PSN_TRANSFORMKEYWORD_SETTING, dicColCheck); |
401 | 401 |
} |
402 | 402 | |
403 |
matched = names.FirstOrDefault(param => param == PSN_MULTIWAY_SETTING); |
|
404 |
dicColCheck.Clear(); |
|
405 |
dicColCheck.Add("INDEX", "INTEGER"); |
|
406 |
dicColCheck.Add("NAME", "TEXT"); |
|
407 |
dicColCheck.Add("MULTIWAY", "TEXT"); |
|
408 |
if (matched == null) |
|
409 |
{ |
|
410 |
var query = $"CREATE TABLE {PSN_MULTIWAY_SETTING} ([INDEX] INTEGER, [NAME] TEXT, [MULTIWAY] TEXT)"; |
|
411 |
using (var cmd = connection.GetSqlStringCommand(query)) |
|
412 |
{ |
|
413 |
cmd.ExecuteNonQuery(); |
|
414 |
} |
|
415 |
} |
|
416 |
else |
|
417 |
{ |
|
418 |
AddColumn(PSN_MULTIWAY_SETTING, dicColCheck); |
|
419 |
} |
|
420 | ||
403 | 421 |
matched = names.FirstOrDefault(param => param == PSN_PIPELINE); |
404 | 422 |
dicColCheck.Clear(); |
405 | 423 |
dicColCheck.Add("OID", "NVARCHAR(255)"); |
... | ... | |
1120 | 1138 |
return dt; |
1121 | 1139 |
} |
1122 | 1140 | |
1141 |
public static DataTable SelectMultiwaysSetting() |
|
1142 |
{ |
|
1143 |
DataTable dt = null; |
|
1144 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
1145 | ||
1146 |
using (IAbstractDatabase connection = id2Info.CreateConnection()) |
|
1147 |
{ |
|
1148 |
try |
|
1149 |
{ |
|
1150 |
var query = $@"SELECT [MULTIWAY], [INDEX], [NAME] FROM {PSN_MULTIWAY_SETTING};"; |
|
1151 |
using (var ds = connection.ExecuteDataSet(connection.GetSqlStringCommand(query))) |
|
1152 |
{ |
|
1153 |
dt = ds.Tables[0].Copy(); |
|
1154 |
} |
|
1155 |
} |
|
1156 |
catch (Exception ex) |
|
1157 |
{ |
|
1158 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
1159 |
} |
|
1160 |
} |
|
1161 | ||
1162 |
return dt; |
|
1163 |
} |
|
1164 | ||
1123 | 1165 |
public static DataTable SelectValveGroupItemsSetting() |
1124 | 1166 |
{ |
1125 | 1167 |
DataTable dt = null; |
... | ... | |
1343 | 1385 |
return true; |
1344 | 1386 |
} |
1345 | 1387 | |
1388 |
public static bool SaveMultiwaysSetting(List<MultiwayItem> multiwayItems) |
|
1389 |
{ |
|
1390 |
ID2Info id2Info = ID2Info.GetInstance(); |
|
1391 |
using (IAbstractDatabase connection = id2Info.CreateConnection()) |
|
1392 |
{ |
|
1393 |
using (var txn = connection.BeginTransaction()) |
|
1394 |
{ |
|
1395 |
try |
|
1396 |
{ |
|
1397 |
var query = $"DELETE FROM {PSN_MULTIWAY_SETTING}"; |
|
1398 |
connection.ExecuteNonQuery(connection.GetSqlStringCommand(query), txn); |
|
1399 | ||
1400 |
foreach (MultiwayItem item in multiwayItems) |
|
1401 |
{ |
|
1402 |
query = $"INSERT INTO {PSN_MULTIWAY_SETTING} ([INDEX], NAME, MULTIWAY) VALUES (@INDEX, @NAME, @MULTIWAY)"; |
|
1403 |
var cmd = connection.GetSqlStringCommand(query); |
|
1404 |
AddWithValue(cmd, "@INDEX", item.Index); |
|
1405 |
AddWithValue(cmd, "@NAME", item.Name); |
|
1406 |
AddWithValue(cmd, "@MULTIWAY", item.Multiway); |
|
1407 |
connection.ExecuteNonQuery(cmd, txn); |
|
1408 |
} |
|
1409 | ||
1410 |
txn.Commit(); |
|
1411 |
} |
|
1412 |
catch (Exception ex) |
|
1413 |
{ |
|
1414 |
Log.Write(ex.Message + "\r\n" + ex.StackTrace); |
|
1415 |
return false; |
|
1416 |
} |
|
1417 |
} |
|
1418 |
} |
|
1419 | ||
1420 |
return true; |
|
1421 |
} |
|
1422 | ||
1346 | 1423 |
public static bool SaveEquipmentNopocketSetting(List<EquipmentNoPocketItem> keywordItems) |
1347 | 1424 |
{ |
1348 | 1425 |
ID2Info id2Info = ID2Info.GetInstance(); |
... | ... | |
2912 | 2989 |
AddColumn(PSN_TRANSFORMKEYWORD_SETTING, dicColCheck); |
2913 | 2990 |
} |
2914 | 2991 | |
2992 |
matched = names.FirstOrDefault(param => param == PSN_MULTIWAY_SETTING); |
|
2993 |
dicColCheck.Clear(); |
|
2994 |
dicColCheck.Add("INDEX", "INTEGER"); |
|
2995 |
dicColCheck.Add("NAME", "TEXT"); |
|
2996 |
dicColCheck.Add("MULTIWAY", "TEXT"); |
|
2997 |
if (matched == null) |
|
2998 |
{ |
|
2999 |
var query = $"CREATE TABLE {PSN_MULTIWAY_SETTING} ([INDEX] INTEGER, [NAME] TEXT, [MULTIWAY] TEXT)"; |
|
3000 |
using (var cmd = connection.GetSqlStringCommand(query)) |
|
3001 |
{ |
|
3002 |
cmd.ExecuteNonQuery(); |
|
3003 |
} |
|
3004 |
} |
|
3005 |
else |
|
3006 |
{ |
|
3007 |
AddColumn(PSN_MULTIWAY_SETTING, dicColCheck); |
|
3008 |
} |
|
3009 | ||
2915 | 3010 |
matched = names.FirstOrDefault(param => param == PSN_PIPELINE); |
2916 | 3011 |
dicColCheck.Clear(); |
2917 | 3012 |
dicColCheck.Add("OID", "NVARCHAR(255)"); |
... | ... | |
3290 | 3385 |
} |
3291 | 3386 | |
3292 | 3387 |
public static bool SaveAnotherPSNData(PSN item, List<HeaderInfo> headerInfos, List<VentDrainInfo> ventDrainInfos, |
3293 |
List<KeywordItem> keywordItems, DataTable dtTopologyRule, DataTable dtFluidCode, DataTable dtPMC, DataTable dtInsulation, DataTable dtvalvegrouping, DataTable dtnopocket, DataTable dtafc) |
|
3388 |
List<KeywordItem> keywordItems, DataTable dtTopologyRule, DataTable dtFluidCode, DataTable dtPMC, DataTable dtInsulation, DataTable dtvalvegrouping, DataTable dtnopocket, DataTable dtafc, |
|
3389 |
List<MultiwayItem> multiwayItems) |
|
3294 | 3390 |
{ |
3295 | 3391 |
AnotherID2Info id2Info = AnotherID2Info.GetInstance(); |
3296 | 3392 | |
... | ... | |
3559 | 3655 |
connection.ExecuteNonQuery(cmd, txn); |
3560 | 3656 |
} |
3561 | 3657 | |
3658 | ||
3659 |
//Multiway Setting |
|
3660 |
query = $"DELETE FROM {PSN_MULTIWAY_SETTING}"; |
|
3661 |
connection.ExecuteNonQuery(connection.GetSqlStringCommand(query), txn); |
|
3662 | ||
3663 |
foreach (MultiwayItem itemMultiway in multiwayItems) |
|
3664 |
{ |
|
3665 |
query = $"INSERT INTO {PSN_MULTIWAY_SETTING} ([INDEX], NAME, MULTIWAY) VALUES (@INDEX, @NAME, @MULTIWAY)"; |
|
3666 |
var cmd = connection.GetSqlStringCommand(query); |
|
3667 |
AddWithValue(cmd, "@INDEX", itemMultiway.Index); |
|
3668 |
AddWithValue(cmd, "@NAME", itemMultiway.Name); |
|
3669 |
AddWithValue(cmd, "@MULTIWAY", itemMultiway.Multiway); |
|
3670 |
connection.ExecuteNonQuery(cmd, txn); |
|
3671 |
} |
|
3672 | ||
3562 | 3673 |
//FulidCode |
3563 | 3674 |
query = $"DELETE FROM {PSN_FLUIDCODE}"; |
3564 | 3675 |
connection.ExecuteNonQuery(connection.GetSqlStringCommand(query), txn); |
DTI_PID/ID2PSN/Form/DBSettingForm.cs | ||
---|---|---|
164 | 164 |
}); |
165 | 165 |
} |
166 | 166 | |
167 |
MultiwayInfo MultiwayInfos = new MultiwayInfo(); |
|
168 |
DataTable dtMultiway = DB.SelectMultiwaysSetting(); |
|
169 |
foreach (DataRow row in dtMultiway.Rows) |
|
170 |
{ |
|
171 |
int index = Convert.ToInt32(row["INDEX"]); |
|
172 |
string name = row["NAME"].ToString(); |
|
173 |
string Multiway = row["MULTIWAY"].ToString(); |
|
174 | ||
175 |
//KeywordInfo keywordInfo = new KeywordInfo(); |
|
176 |
MultiwayInfos.MultiwayItems.Add(new MultiwayItem() |
|
177 |
{ |
|
178 |
Index = index, |
|
179 |
Name = name, |
|
180 |
Multiway = Multiway |
|
181 |
}); |
|
182 |
} |
|
183 | ||
167 | 184 |
DataTable dtTopologyRule = DB.SelectTopologyRule(); |
168 | 185 |
DataTable PSNFluidDT = DB.SelectPSNFluidCode(); |
169 | 186 |
DataTable PSNPMCDT = DB.SelectPSNPIPINGMATLCLASS(); |
... | ... | |
177 | 194 |
DB.ConnTestAndCreateAnotherTable(); |
178 | 195 | |
179 | 196 |
//Save |
180 |
if (DB.SaveAnotherPSNData(_currentPSN, HeaderInfos, VentDrainInfos, KeywordInfos.KeywordItems, dtTopologyRule, PSNFluidDT, PSNPMCDT, PSNINSULATIONDT, PSNVALVALVEGROUPINGDT, PSNNOPOCKETDT, PSNAFC)) |
|
197 |
if (DB.SaveAnotherPSNData(_currentPSN, HeaderInfos, VentDrainInfos, KeywordInfos.KeywordItems, dtTopologyRule, PSNFluidDT, PSNPMCDT, PSNINSULATIONDT, PSNVALVALVEGROUPINGDT, PSNNOPOCKETDT, PSNAFC, MultiwayInfos.MultiwayItems))
|
|
181 | 198 |
{ |
182 | 199 |
if (rgDbSetting.SelectedIndex == 1) |
183 | 200 |
{ |
DTI_PID/ID2PSN/Form/EquipmentNoPocketSetting.Designer.cs | ||
---|---|---|
74 | 74 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
75 | 75 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
76 | 76 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
77 |
this.ribbonControl.Size = new System.Drawing.Size(663, 32);
|
|
77 |
this.ribbonControl.Size = new System.Drawing.Size(671, 32);
|
|
78 | 78 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
79 | 79 |
// |
80 | 80 |
// layoutControl1 |
... | ... | |
88 | 88 |
this.layoutControl1.Name = "layoutControl1"; |
89 | 89 |
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(488, 408, 650, 400); |
90 | 90 |
this.layoutControl1.Root = this.Root; |
91 |
this.layoutControl1.Size = new System.Drawing.Size(663, 659);
|
|
91 |
this.layoutControl1.Size = new System.Drawing.Size(671, 663);
|
|
92 | 92 |
this.layoutControl1.TabIndex = 1; |
93 | 93 |
this.layoutControl1.Text = "layoutControl1"; |
94 | 94 |
// |
... | ... | |
98 | 98 |
this.gridEquipment.MainView = this.gridViewEquipment; |
99 | 99 |
this.gridEquipment.MenuManager = this.ribbonControl; |
100 | 100 |
this.gridEquipment.Name = "gridEquipment"; |
101 |
this.gridEquipment.Size = new System.Drawing.Size(615, 526);
|
|
101 |
this.gridEquipment.Size = new System.Drawing.Size(623, 530);
|
|
102 | 102 |
this.gridEquipment.TabIndex = 4; |
103 | 103 |
this.gridEquipment.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
104 | 104 |
this.gridViewEquipment}); |
... | ... | |
112 | 112 |
// btnClose |
113 | 113 |
// |
114 | 114 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
115 |
this.btnClose.Location = new System.Drawing.Point(581, 611);
|
|
115 |
this.btnClose.Location = new System.Drawing.Point(589, 615);
|
|
116 | 116 |
this.btnClose.Name = "btnClose"; |
117 | 117 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
118 | 118 |
this.btnClose.StyleController = this.layoutControl1; |
... | ... | |
123 | 123 |
// btnSave |
124 | 124 |
// |
125 | 125 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
126 |
this.btnSave.Location = new System.Drawing.Point(489, 611);
|
|
126 |
this.btnSave.Location = new System.Drawing.Point(497, 615);
|
|
127 | 127 |
this.btnSave.Name = "btnSave"; |
128 | 128 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
129 | 129 |
this.btnSave.StyleController = this.layoutControl1; |
... | ... | |
133 | 133 |
// |
134 | 134 |
// btnAddValveGroup |
135 | 135 |
// |
136 |
this.btnAddValveGroup.Location = new System.Drawing.Point(502, 43);
|
|
136 |
this.btnAddValveGroup.Location = new System.Drawing.Point(508, 43);
|
|
137 | 137 |
this.btnAddValveGroup.Name = "btnAddValveGroup"; |
138 |
this.btnAddValveGroup.Size = new System.Drawing.Size(137, 22);
|
|
138 |
this.btnAddValveGroup.Size = new System.Drawing.Size(139, 22);
|
|
139 | 139 |
this.btnAddValveGroup.StyleController = this.layoutControl1; |
140 | 140 |
this.btnAddValveGroup.TabIndex = 2; |
141 | 141 |
this.btnAddValveGroup.Text = " Add Equipment"; |
... | ... | |
152 | 152 |
this.emptySpaceItem2, |
153 | 153 |
this.layoutControlGroup2}); |
154 | 154 |
this.Root.Name = "Root"; |
155 |
this.Root.Size = new System.Drawing.Size(663, 659);
|
|
155 |
this.Root.Size = new System.Drawing.Size(671, 663);
|
|
156 | 156 |
this.Root.TextVisible = false; |
157 | 157 |
// |
158 | 158 |
// emptySpaceItem3 |
159 | 159 |
// |
160 | 160 |
this.emptySpaceItem3.AllowHotTrack = false; |
161 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 599);
|
|
161 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 603);
|
|
162 | 162 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
163 |
this.emptySpaceItem3.Size = new System.Drawing.Size(477, 40);
|
|
163 |
this.emptySpaceItem3.Size = new System.Drawing.Size(485, 40);
|
|
164 | 164 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
165 | 165 |
// |
166 | 166 |
// layoutControlItem4 |
167 | 167 |
// |
168 | 168 |
this.layoutControlItem4.Control = this.btnSave; |
169 |
this.layoutControlItem4.Location = new System.Drawing.Point(477, 599);
|
|
169 |
this.layoutControlItem4.Location = new System.Drawing.Point(485, 603);
|
|
170 | 170 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(72, 40); |
171 | 171 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(72, 40); |
172 | 172 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
... | ... | |
178 | 178 |
// layoutControlItem5 |
179 | 179 |
// |
180 | 180 |
this.layoutControlItem5.Control = this.btnClose; |
181 |
this.layoutControlItem5.Location = new System.Drawing.Point(569, 599);
|
|
181 |
this.layoutControlItem5.Location = new System.Drawing.Point(577, 603);
|
|
182 | 182 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(74, 40); |
183 | 183 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(74, 40); |
184 | 184 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
... | ... | |
190 | 190 |
// emptySpaceItem2 |
191 | 191 |
// |
192 | 192 |
this.emptySpaceItem2.AllowHotTrack = false; |
193 |
this.emptySpaceItem2.Location = new System.Drawing.Point(549, 599);
|
|
193 |
this.emptySpaceItem2.Location = new System.Drawing.Point(557, 603);
|
|
194 | 194 |
this.emptySpaceItem2.MaxSize = new System.Drawing.Size(20, 40); |
195 | 195 |
this.emptySpaceItem2.MinSize = new System.Drawing.Size(20, 40); |
196 | 196 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
... | ... | |
207 | 207 |
this.emptySpaceItem1}); |
208 | 208 |
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0); |
209 | 209 |
this.layoutControlGroup2.Name = "layoutControlGroup2"; |
210 |
this.layoutControlGroup2.Size = new System.Drawing.Size(643, 599);
|
|
210 |
this.layoutControlGroup2.Size = new System.Drawing.Size(651, 603);
|
|
211 | 211 |
this.layoutControlGroup2.Text = "Equipment No Pocket Items"; |
212 | 212 |
// |
213 | 213 |
// layoutControlItem6 |
... | ... | |
215 | 215 |
this.layoutControlItem6.Control = this.gridEquipment; |
216 | 216 |
this.layoutControlItem6.Location = new System.Drawing.Point(0, 26); |
217 | 217 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
218 |
this.layoutControlItem6.Size = new System.Drawing.Size(619, 530);
|
|
218 |
this.layoutControlItem6.Size = new System.Drawing.Size(627, 534);
|
|
219 | 219 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
220 | 220 |
this.layoutControlItem6.TextVisible = false; |
221 | 221 |
// |
222 | 222 |
// layoutControlItem3 |
223 | 223 |
// |
224 | 224 |
this.layoutControlItem3.Control = this.btnAddValveGroup; |
225 |
this.layoutControlItem3.Location = new System.Drawing.Point(478, 0);
|
|
225 |
this.layoutControlItem3.Location = new System.Drawing.Point(484, 0);
|
|
226 | 226 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
227 |
this.layoutControlItem3.Size = new System.Drawing.Size(141, 26);
|
|
227 |
this.layoutControlItem3.Size = new System.Drawing.Size(143, 26);
|
|
228 | 228 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
229 | 229 |
this.layoutControlItem3.TextVisible = false; |
230 | 230 |
// |
... | ... | |
233 | 233 |
this.emptySpaceItem1.AllowHotTrack = false; |
234 | 234 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 0); |
235 | 235 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
236 |
this.emptySpaceItem1.Size = new System.Drawing.Size(478, 26);
|
|
236 |
this.emptySpaceItem1.Size = new System.Drawing.Size(484, 26);
|
|
237 | 237 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
238 | 238 |
// |
239 | 239 |
// EquipmentNoPocketSetting |
240 | 240 |
// |
241 | 241 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
242 | 242 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
243 |
this.ClientSize = new System.Drawing.Size(663, 691);
|
|
243 |
this.ClientSize = new System.Drawing.Size(671, 695);
|
|
244 | 244 |
this.Controls.Add(this.layoutControl1); |
245 | 245 |
this.Controls.Add(this.ribbonControl); |
246 | 246 |
this.Name = "EquipmentNoPocketSetting"; |
DTI_PID/ID2PSN/Form/EquipmentSetting.Designer.cs | ||
---|---|---|
84 | 84 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
85 | 85 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
86 | 86 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
87 |
this.ribbonControl.Size = new System.Drawing.Size(634, 32);
|
|
87 |
this.ribbonControl.Size = new System.Drawing.Size(642, 32);
|
|
88 | 88 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
89 | 89 |
// |
90 | 90 |
// layoutControl1 |
... | ... | |
97 | 97 |
this.layoutControl1.Name = "layoutControl1"; |
98 | 98 |
this.layoutControl1.OptionsView.UseDefaultDragAndDropRendering = false; |
99 | 99 |
this.layoutControl1.Root = this.Root; |
100 |
this.layoutControl1.Size = new System.Drawing.Size(634, 682);
|
|
100 |
this.layoutControl1.Size = new System.Drawing.Size(642, 686);
|
|
101 | 101 |
this.layoutControl1.TabIndex = 1; |
102 | 102 |
this.layoutControl1.Text = "layoutControl1"; |
103 | 103 |
// |
104 | 104 |
// btnClose |
105 | 105 |
// |
106 | 106 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
107 |
this.btnClose.Location = new System.Drawing.Point(552, 634);
|
|
107 |
this.btnClose.Location = new System.Drawing.Point(560, 638);
|
|
108 | 108 |
this.btnClose.Name = "btnClose"; |
109 | 109 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
110 | 110 |
this.btnClose.StyleController = this.layoutControl1; |
... | ... | |
115 | 115 |
// btnSave |
116 | 116 |
// |
117 | 117 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
118 |
this.btnSave.Location = new System.Drawing.Point(460, 634);
|
|
118 |
this.btnSave.Location = new System.Drawing.Point(468, 638);
|
|
119 | 119 |
this.btnSave.Name = "btnSave"; |
120 | 120 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
121 | 121 |
this.btnSave.StyleController = this.layoutControl1; |
... | ... | |
128 | 128 |
this.xtraTabControlSetting.Location = new System.Drawing.Point(12, 12); |
129 | 129 |
this.xtraTabControlSetting.Name = "xtraTabControlSetting"; |
130 | 130 |
this.xtraTabControlSetting.SelectedTabPage = this.xtraTabPageNoPocket; |
131 |
this.xtraTabControlSetting.Size = new System.Drawing.Size(610, 618);
|
|
131 |
this.xtraTabControlSetting.Size = new System.Drawing.Size(618, 622);
|
|
132 | 132 |
this.xtraTabControlSetting.TabIndex = 4; |
133 | 133 |
this.xtraTabControlSetting.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { |
134 | 134 |
this.xtraTabPageNoPocket, |
... | ... | |
138 | 138 |
// |
139 | 139 |
this.xtraTabPageNoPocket.Controls.Add(this.tableLayoutPanel1); |
140 | 140 |
this.xtraTabPageNoPocket.Name = "xtraTabPageNoPocket"; |
141 |
this.xtraTabPageNoPocket.Size = new System.Drawing.Size(608, 592);
|
|
141 |
this.xtraTabPageNoPocket.Size = new System.Drawing.Size(616, 596);
|
|
142 | 142 |
this.xtraTabPageNoPocket.Text = "Equipment for No pocket"; |
143 | 143 |
// |
144 | 144 |
// tableLayoutPanel1 |
... | ... | |
152 | 152 |
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; |
153 | 153 |
this.tableLayoutPanel1.RowCount = 2; |
154 | 154 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); |
155 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 556F));
|
|
156 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(608, 592);
|
|
155 |
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 567F));
|
|
156 |
this.tableLayoutPanel1.Size = new System.Drawing.Size(616, 596);
|
|
157 | 157 |
this.tableLayoutPanel1.TabIndex = 1; |
158 | 158 |
// |
159 | 159 |
// gridEquipment |
160 | 160 |
// |
161 | 161 |
this.gridEquipment.Dock = System.Windows.Forms.DockStyle.Fill; |
162 |
this.gridEquipment.Location = new System.Drawing.Point(3, 39);
|
|
162 |
this.gridEquipment.Location = new System.Drawing.Point(3, 32);
|
|
163 | 163 |
this.gridEquipment.MainView = this.gridViewEquipment; |
164 | 164 |
this.gridEquipment.MenuManager = this.ribbonControl; |
165 | 165 |
this.gridEquipment.Name = "gridEquipment"; |
166 |
this.gridEquipment.Size = new System.Drawing.Size(602, 550);
|
|
166 |
this.gridEquipment.Size = new System.Drawing.Size(610, 561);
|
|
167 | 167 |
this.gridEquipment.TabIndex = 5; |
168 | 168 |
this.gridEquipment.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
169 | 169 |
this.gridViewEquipment}); |
... | ... | |
177 | 177 |
// simpleButton1 |
178 | 178 |
// |
179 | 179 |
this.simpleButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
180 |
this.simpleButton1.Location = new System.Drawing.Point(495, 3);
|
|
180 |
this.simpleButton1.Location = new System.Drawing.Point(503, 3);
|
|
181 | 181 |
this.simpleButton1.Name = "simpleButton1"; |
182 | 182 |
this.simpleButton1.Size = new System.Drawing.Size(110, 22); |
183 | 183 |
this.simpleButton1.StyleController = this.layoutControl1; |
... | ... | |
189 | 189 |
// |
190 | 190 |
this.xtraTabPageAirPinCooler.Controls.Add(this.tableLayoutPanel2); |
191 | 191 |
this.xtraTabPageAirPinCooler.Name = "xtraTabPageAirPinCooler"; |
192 |
this.xtraTabPageAirPinCooler.Size = new System.Drawing.Size(608, 592);
|
|
192 |
this.xtraTabPageAirPinCooler.Size = new System.Drawing.Size(616, 596);
|
|
193 | 193 |
this.xtraTabPageAirPinCooler.Text = "Equipment Grouping Tag"; |
194 | 194 |
// |
195 | 195 |
// tableLayoutPanel2 |
... | ... | |
204 | 204 |
this.tableLayoutPanel2.RowCount = 2; |
205 | 205 |
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.965754F)); |
206 | 206 |
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 95.03425F)); |
207 |
this.tableLayoutPanel2.Size = new System.Drawing.Size(608, 592);
|
|
207 |
this.tableLayoutPanel2.Size = new System.Drawing.Size(616, 596);
|
|
208 | 208 |
this.tableLayoutPanel2.TabIndex = 1; |
209 | 209 |
// |
210 | 210 |
// gridControlAirFinCooler |
... | ... | |
214 | 214 |
this.gridControlAirFinCooler.MainView = this.gridViewAirFinCooler; |
215 | 215 |
this.gridControlAirFinCooler.MenuManager = this.ribbonControl; |
216 | 216 |
this.gridControlAirFinCooler.Name = "gridControlAirFinCooler"; |
217 |
this.gridControlAirFinCooler.Size = new System.Drawing.Size(602, 557);
|
|
217 |
this.gridControlAirFinCooler.Size = new System.Drawing.Size(610, 561);
|
|
218 | 218 |
this.gridControlAirFinCooler.TabIndex = 0; |
219 | 219 |
this.gridControlAirFinCooler.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
220 | 220 |
this.gridViewAirFinCooler}); |
... | ... | |
228 | 228 |
// btnAddValveGroup |
229 | 229 |
// |
230 | 230 |
this.btnAddValveGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
231 |
this.btnAddValveGroup.Location = new System.Drawing.Point(495, 3);
|
|
231 |
this.btnAddValveGroup.Location = new System.Drawing.Point(503, 3);
|
|
232 | 232 |
this.btnAddValveGroup.Name = "btnAddValveGroup"; |
233 | 233 |
this.btnAddValveGroup.Size = new System.Drawing.Size(110, 22); |
234 | 234 |
this.btnAddValveGroup.StyleController = this.layoutControl1; |
... | ... | |
247 | 247 |
this.emptySpaceItem1, |
248 | 248 |
this.emptySpaceItem2}); |
249 | 249 |
this.Root.Name = "Root"; |
250 |
this.Root.Size = new System.Drawing.Size(634, 682);
|
|
250 |
this.Root.Size = new System.Drawing.Size(642, 686);
|
|
251 | 251 |
this.Root.TextVisible = false; |
252 | 252 |
// |
253 | 253 |
// layoutControlItem1 |
... | ... | |
255 | 255 |
this.layoutControlItem1.Control = this.xtraTabControlSetting; |
256 | 256 |
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0); |
257 | 257 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
258 |
this.layoutControlItem1.Size = new System.Drawing.Size(614, 622);
|
|
258 |
this.layoutControlItem1.Size = new System.Drawing.Size(622, 626);
|
|
259 | 259 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
260 | 260 |
this.layoutControlItem1.TextVisible = false; |
261 | 261 |
// |
262 | 262 |
// layoutControlItem2 |
263 | 263 |
// |
264 | 264 |
this.layoutControlItem2.Control = this.btnSave; |
265 |
this.layoutControlItem2.Location = new System.Drawing.Point(448, 622);
|
|
265 |
this.layoutControlItem2.Location = new System.Drawing.Point(456, 626);
|
|
266 | 266 |
this.layoutControlItem2.MaxSize = new System.Drawing.Size(72, 40); |
267 | 267 |
this.layoutControlItem2.MinSize = new System.Drawing.Size(72, 40); |
268 | 268 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
... | ... | |
274 | 274 |
// layoutControlItem3 |
275 | 275 |
// |
276 | 276 |
this.layoutControlItem3.Control = this.btnClose; |
277 |
this.layoutControlItem3.Location = new System.Drawing.Point(540, 622);
|
|
277 |
this.layoutControlItem3.Location = new System.Drawing.Point(548, 626);
|
|
278 | 278 |
this.layoutControlItem3.MaxSize = new System.Drawing.Size(74, 40); |
279 | 279 |
this.layoutControlItem3.MinSize = new System.Drawing.Size(74, 40); |
280 | 280 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
... | ... | |
286 | 286 |
// emptySpaceItem1 |
287 | 287 |
// |
288 | 288 |
this.emptySpaceItem1.AllowHotTrack = false; |
289 |
this.emptySpaceItem1.Location = new System.Drawing.Point(520, 622);
|
|
289 |
this.emptySpaceItem1.Location = new System.Drawing.Point(528, 626);
|
|
290 | 290 |
this.emptySpaceItem1.MaxSize = new System.Drawing.Size(20, 40); |
291 | 291 |
this.emptySpaceItem1.MinSize = new System.Drawing.Size(20, 40); |
292 | 292 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
... | ... | |
297 | 297 |
// emptySpaceItem2 |
298 | 298 |
// |
299 | 299 |
this.emptySpaceItem2.AllowHotTrack = false; |
300 |
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 622);
|
|
300 |
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 626);
|
|
301 | 301 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
302 |
this.emptySpaceItem2.Size = new System.Drawing.Size(448, 40);
|
|
302 |
this.emptySpaceItem2.Size = new System.Drawing.Size(456, 40);
|
|
303 | 303 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
304 | 304 |
// |
305 | 305 |
// EquipmentSetting |
306 | 306 |
// |
307 | 307 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
308 | 308 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
309 |
this.ClientSize = new System.Drawing.Size(634, 714);
|
|
309 |
this.ClientSize = new System.Drawing.Size(642, 718);
|
|
310 | 310 |
this.Controls.Add(this.layoutControl1); |
311 | 311 |
this.Controls.Add(this.ribbonControl); |
312 | 312 |
this.Name = "EquipmentSetting"; |
DTI_PID/ID2PSN/Form/HeaderSettingForm.Designer.cs | ||
---|---|---|
94 | 94 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
95 | 95 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
96 | 96 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
97 |
this.ribbonControl.Size = new System.Drawing.Size(912, 32);
|
|
97 |
this.ribbonControl.Size = new System.Drawing.Size(920, 32);
|
|
98 | 98 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
99 | 99 |
// |
100 | 100 |
// layoutControl1 |
... | ... | |
110 | 110 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
111 | 111 |
this.layoutControl1.Name = "layoutControl1"; |
112 | 112 |
this.layoutControl1.Root = this.Root; |
113 |
this.layoutControl1.Size = new System.Drawing.Size(912, 627);
|
|
113 |
this.layoutControl1.Size = new System.Drawing.Size(920, 631);
|
|
114 | 114 |
this.layoutControl1.TabIndex = 1; |
115 | 115 |
this.layoutControl1.Text = "layoutControl1"; |
116 | 116 |
// |
... | ... | |
120 | 120 |
this.labelControlToolTip.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.RightCenter; |
121 | 121 |
this.labelControlToolTip.ImageOptions.Alignment = System.Drawing.ContentAlignment.MiddleLeft; |
122 | 122 |
this.labelControlToolTip.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("labelControlToolTip.ImageOptions.Image"))); |
123 |
this.labelControlToolTip.Location = new System.Drawing.Point(830, 12);
|
|
123 |
this.labelControlToolTip.Location = new System.Drawing.Point(838, 12);
|
|
124 | 124 |
this.labelControlToolTip.Name = "labelControlToolTip"; |
125 | 125 |
this.labelControlToolTip.Size = new System.Drawing.Size(70, 16); |
126 | 126 |
this.labelControlToolTip.StyleController = this.layoutControl1; |
... | ... | |
129 | 129 |
// |
130 | 130 |
// btnAddType |
131 | 131 |
// |
132 |
this.btnAddType.Location = new System.Drawing.Point(357, 63);
|
|
132 |
this.btnAddType.Location = new System.Drawing.Point(360, 63);
|
|
133 | 133 |
this.btnAddType.Name = "btnAddType"; |
134 |
this.btnAddType.Size = new System.Drawing.Size(78, 22);
|
|
134 |
this.btnAddType.Size = new System.Drawing.Size(79, 22);
|
|
135 | 135 |
this.btnAddType.StyleController = this.layoutControl1; |
136 | 136 |
this.btnAddType.TabIndex = 0; |
137 | 137 |
this.btnAddType.Text = "Add Type"; |
... | ... | |
139 | 139 |
// |
140 | 140 |
// gridControlSymbol |
141 | 141 |
// |
142 |
this.gridControlSymbol.Location = new System.Drawing.Point(475, 89);
|
|
142 |
this.gridControlSymbol.Location = new System.Drawing.Point(479, 89);
|
|
143 | 143 |
this.gridControlSymbol.MainView = this.gridViewSymbol; |
144 | 144 |
this.gridControlSymbol.MenuManager = this.ribbonControl; |
145 | 145 |
this.gridControlSymbol.Name = "gridControlSymbol"; |
146 |
this.gridControlSymbol.Size = new System.Drawing.Size(413, 474);
|
|
146 |
this.gridControlSymbol.Size = new System.Drawing.Size(417, 478);
|
|
147 | 147 |
this.gridControlSymbol.TabIndex = 4; |
148 | 148 |
this.gridControlSymbol.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
149 | 149 |
this.gridViewSymbol}); |
... | ... | |
160 | 160 |
this.gridControlType.MainView = this.gridViewType; |
161 | 161 |
this.gridControlType.MenuManager = this.ribbonControl; |
162 | 162 |
this.gridControlType.Name = "gridControlType"; |
163 |
this.gridControlType.Size = new System.Drawing.Size(411, 474);
|
|
163 |
this.gridControlType.Size = new System.Drawing.Size(415, 478);
|
|
164 | 164 |
this.gridControlType.TabIndex = 3; |
165 | 165 |
this.gridControlType.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
166 | 166 |
this.gridViewType}); |
... | ... | |
176 | 176 |
// btnClose |
177 | 177 |
// |
178 | 178 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
179 |
this.btnClose.Location = new System.Drawing.Point(830, 579);
|
|
179 |
this.btnClose.Location = new System.Drawing.Point(838, 583);
|
|
180 | 180 |
this.btnClose.Name = "btnClose"; |
181 | 181 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
182 | 182 |
this.btnClose.StyleController = this.layoutControl1; |
... | ... | |
187 | 187 |
// btnSave |
188 | 188 |
// |
189 | 189 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
190 |
this.btnSave.Location = new System.Drawing.Point(738, 579);
|
|
190 |
this.btnSave.Location = new System.Drawing.Point(746, 583);
|
|
191 | 191 |
this.btnSave.Name = "btnSave"; |
192 | 192 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
193 | 193 |
this.btnSave.StyleController = this.layoutControl1; |
... | ... | |
197 | 197 |
// |
198 | 198 |
// btnAddSymbol |
199 | 199 |
// |
200 |
this.btnAddSymbol.Location = new System.Drawing.Point(798, 63);
|
|
200 |
this.btnAddSymbol.Location = new System.Drawing.Point(805, 63);
|
|
201 | 201 |
this.btnAddSymbol.Name = "btnAddSymbol"; |
202 |
this.btnAddSymbol.Size = new System.Drawing.Size(90, 22);
|
|
202 |
this.btnAddSymbol.Size = new System.Drawing.Size(91, 22);
|
|
203 | 203 |
this.btnAddSymbol.StyleController = this.layoutControl1; |
204 | 204 |
this.btnAddSymbol.TabIndex = 2; |
205 | 205 |
this.btnAddSymbol.Text = " Add Symbol"; |
... | ... | |
220 | 220 |
this.layoutControlItem7, |
221 | 221 |
this.emptySpaceItem5}); |
222 | 222 |
this.Root.Name = "Root"; |
223 |
this.Root.Size = new System.Drawing.Size(912, 627);
|
|
223 |
this.Root.Size = new System.Drawing.Size(920, 631);
|
|
224 | 224 |
this.Root.TextVisible = false; |
225 | 225 |
// |
226 | 226 |
// splitterItem1 |
227 | 227 |
// |
228 | 228 |
this.splitterItem1.AllowHotTrack = true; |
229 |
this.splitterItem1.Location = new System.Drawing.Point(439, 20);
|
|
229 |
this.splitterItem1.Location = new System.Drawing.Point(443, 20);
|
|
230 | 230 |
this.splitterItem1.Name = "splitterItem1"; |
231 |
this.splitterItem1.Size = new System.Drawing.Size(12, 547);
|
|
231 |
this.splitterItem1.Size = new System.Drawing.Size(12, 551);
|
|
232 | 232 |
// |
233 | 233 |
// emptySpaceItem3 |
234 | 234 |
// |
235 | 235 |
this.emptySpaceItem3.AllowHotTrack = false; |
236 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 567);
|
|
236 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 571);
|
|
237 | 237 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
238 |
this.emptySpaceItem3.Size = new System.Drawing.Size(726, 40);
|
|
238 |
this.emptySpaceItem3.Size = new System.Drawing.Size(734, 40);
|
|
239 | 239 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
240 | 240 |
// |
241 | 241 |
// layoutControlItem4 |
242 | 242 |
// |
243 | 243 |
this.layoutControlItem4.Control = this.btnSave; |
244 |
this.layoutControlItem4.Location = new System.Drawing.Point(726, 567);
|
|
244 |
this.layoutControlItem4.Location = new System.Drawing.Point(734, 571);
|
|
245 | 245 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(72, 40); |
246 | 246 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(72, 40); |
247 | 247 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
... | ... | |
253 | 253 |
// layoutControlItem5 |
254 | 254 |
// |
255 | 255 |
this.layoutControlItem5.Control = this.btnClose; |
256 |
this.layoutControlItem5.Location = new System.Drawing.Point(818, 567);
|
|
256 |
this.layoutControlItem5.Location = new System.Drawing.Point(826, 571);
|
|
257 | 257 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(74, 40); |
258 | 258 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(74, 40); |
259 | 259 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
... | ... | |
265 | 265 |
// emptySpaceItem2 |
266 | 266 |
// |
267 | 267 |
this.emptySpaceItem2.AllowHotTrack = false; |
268 |
this.emptySpaceItem2.Location = new System.Drawing.Point(798, 567);
|
|
268 |
this.emptySpaceItem2.Location = new System.Drawing.Point(806, 571);
|
|
269 | 269 |
this.emptySpaceItem2.MaxSize = new System.Drawing.Size(20, 40); |
270 | 270 |
this.emptySpaceItem2.MinSize = new System.Drawing.Size(20, 40); |
271 | 271 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
... | ... | |
281 | 281 |
this.emptySpaceItem4}); |
282 | 282 |
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 20); |
283 | 283 |
this.layoutControlGroup1.Name = "layoutControlGroup1"; |
284 |
this.layoutControlGroup1.Size = new System.Drawing.Size(439, 547);
|
|
284 |
this.layoutControlGroup1.Size = new System.Drawing.Size(443, 551);
|
|
285 | 285 |
this.layoutControlGroup1.Text = "Header Type"; |
286 | 286 |
// |
287 | 287 |
// layoutControlItem2 |
... | ... | |
289 | 289 |
this.layoutControlItem2.Control = this.gridControlType; |
290 | 290 |
this.layoutControlItem2.Location = new System.Drawing.Point(0, 26); |
291 | 291 |
this.layoutControlItem2.Name = "layoutControlItem2"; |
292 |
this.layoutControlItem2.Size = new System.Drawing.Size(415, 478);
|
|
292 |
this.layoutControlItem2.Size = new System.Drawing.Size(419, 482);
|
|
293 | 293 |
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0); |
294 | 294 |
this.layoutControlItem2.TextVisible = false; |
295 | 295 |
// |
296 | 296 |
// layoutControlItem1 |
297 | 297 |
// |
298 | 298 |
this.layoutControlItem1.Control = this.btnAddType; |
299 |
this.layoutControlItem1.Location = new System.Drawing.Point(333, 0);
|
|
299 |
this.layoutControlItem1.Location = new System.Drawing.Point(336, 0);
|
|
300 | 300 |
this.layoutControlItem1.Name = "layoutControlItem1"; |
301 |
this.layoutControlItem1.Size = new System.Drawing.Size(82, 26);
|
|
301 |
this.layoutControlItem1.Size = new System.Drawing.Size(83, 26);
|
|
302 | 302 |
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0); |
303 | 303 |
this.layoutControlItem1.TextVisible = false; |
304 | 304 |
// |
... | ... | |
307 | 307 |
this.emptySpaceItem4.AllowHotTrack = false; |
308 | 308 |
this.emptySpaceItem4.Location = new System.Drawing.Point(0, 0); |
309 | 309 |
this.emptySpaceItem4.Name = "emptySpaceItem4"; |
310 |
this.emptySpaceItem4.Size = new System.Drawing.Size(333, 26);
|
|
310 |
this.emptySpaceItem4.Size = new System.Drawing.Size(336, 26);
|
|
311 | 311 |
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0); |
312 | 312 |
// |
313 | 313 |
// layoutControlGroup2 |
... | ... | |
316 | 316 |
this.layoutControlItem6, |
317 | 317 |
this.layoutControlItem3, |
318 | 318 |
this.emptySpaceItem1}); |
319 |
this.layoutControlGroup2.Location = new System.Drawing.Point(451, 20);
|
|
319 |
this.layoutControlGroup2.Location = new System.Drawing.Point(455, 20);
|
|
320 | 320 |
this.layoutControlGroup2.Name = "layoutControlGroup2"; |
321 |
this.layoutControlGroup2.Size = new System.Drawing.Size(441, 547);
|
|
321 |
this.layoutControlGroup2.Size = new System.Drawing.Size(445, 551);
|
|
322 | 322 |
this.layoutControlGroup2.Text = "Type Items"; |
323 | 323 |
// |
324 | 324 |
// layoutControlItem6 |
... | ... | |
326 | 326 |
this.layoutControlItem6.Control = this.gridControlSymbol; |
327 | 327 |
this.layoutControlItem6.Location = new System.Drawing.Point(0, 26); |
328 | 328 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
329 |
this.layoutControlItem6.Size = new System.Drawing.Size(417, 478);
|
|
329 |
this.layoutControlItem6.Size = new System.Drawing.Size(421, 482);
|
|
330 | 330 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
331 | 331 |
this.layoutControlItem6.TextVisible = false; |
332 | 332 |
// |
333 | 333 |
// layoutControlItem3 |
334 | 334 |
// |
335 | 335 |
this.layoutControlItem3.Control = this.btnAddSymbol; |
336 |
this.layoutControlItem3.Location = new System.Drawing.Point(323, 0);
|
|
336 |
this.layoutControlItem3.Location = new System.Drawing.Point(326, 0);
|
|
337 | 337 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
338 |
this.layoutControlItem3.Size = new System.Drawing.Size(94, 26);
|
|
338 |
this.layoutControlItem3.Size = new System.Drawing.Size(95, 26);
|
|
339 | 339 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
340 | 340 |
this.layoutControlItem3.TextVisible = false; |
341 | 341 |
// |
... | ... | |
344 | 344 |
this.emptySpaceItem1.AllowHotTrack = false; |
345 | 345 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 0); |
346 | 346 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
347 |
this.emptySpaceItem1.Size = new System.Drawing.Size(323, 26);
|
|
347 |
this.emptySpaceItem1.Size = new System.Drawing.Size(326, 26);
|
|
348 | 348 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
349 | 349 |
// |
350 | 350 |
// layoutControlItem7 |
351 | 351 |
// |
352 | 352 |
this.layoutControlItem7.Control = this.labelControlToolTip; |
353 |
this.layoutControlItem7.Location = new System.Drawing.Point(818, 0);
|
|
353 |
this.layoutControlItem7.Location = new System.Drawing.Point(826, 0);
|
|
354 | 354 |
this.layoutControlItem7.MaxSize = new System.Drawing.Size(74, 20); |
355 | 355 |
this.layoutControlItem7.MinSize = new System.Drawing.Size(74, 20); |
356 | 356 |
this.layoutControlItem7.Name = "layoutControlItem7"; |
... | ... | |
364 | 364 |
this.emptySpaceItem5.AllowHotTrack = false; |
365 | 365 |
this.emptySpaceItem5.Location = new System.Drawing.Point(0, 0); |
366 | 366 |
this.emptySpaceItem5.Name = "emptySpaceItem5"; |
367 |
this.emptySpaceItem5.Size = new System.Drawing.Size(818, 20);
|
|
367 |
this.emptySpaceItem5.Size = new System.Drawing.Size(826, 20);
|
|
368 | 368 |
this.emptySpaceItem5.TextSize = new System.Drawing.Size(0, 0); |
369 | 369 |
// |
370 | 370 |
// HeaderSettingForm |
371 | 371 |
// |
372 | 372 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
373 | 373 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
374 |
this.ClientSize = new System.Drawing.Size(912, 659);
|
|
374 |
this.ClientSize = new System.Drawing.Size(920, 663);
|
|
375 | 375 |
this.Controls.Add(this.layoutControl1); |
376 | 376 |
this.Controls.Add(this.ribbonControl); |
377 | 377 |
this.Name = "HeaderSettingForm"; |
DTI_PID/ID2PSN/Form/MainForm.Designer.cs | ||
---|---|---|
85 | 85 |
this.toolStripMenuItemPathItems = new System.Windows.Forms.ToolStripMenuItem(); |
86 | 86 |
this.splashScreenManager1 = new DevExpress.XtraSplashScreen.SplashScreenManager(this, typeof(global::ID2PSN.WaitForm), true, true); |
87 | 87 |
this.sqLiteCommandBuilder1 = new System.Data.SQLite.SQLiteCommandBuilder(); |
88 |
this.MultiwaySetting = new DevExpress.XtraEditors.SimpleButton(); |
|
89 |
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
88 | 90 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
89 | 91 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
90 | 92 |
this.layoutControl1.SuspendLayout(); |
... | ... | |
123 | 125 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit(); |
124 | 126 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit(); |
125 | 127 |
this.contextMenuPSN.SuspendLayout(); |
128 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit(); |
|
126 | 129 |
this.SuspendLayout(); |
127 | 130 |
// |
128 | 131 |
// ribbonControl |
... | ... | |
163 | 166 |
this.layoutControl1.Controls.Add(this.btnValveGroupItemsSetting); |
164 | 167 |
this.layoutControl1.Controls.Add(this.btnEquipment); |
165 | 168 |
this.layoutControl1.Controls.Add(this.btnHistory); |
169 |
this.layoutControl1.Controls.Add(this.MultiwaySetting); |
|
166 | 170 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
167 | 171 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
168 | 172 |
this.layoutControl1.Name = "layoutControl1"; |
... | ... | |
378 | 382 |
// |
379 | 383 |
// PBSSetting |
380 | 384 |
// |
381 |
this.PBSSetting.Location = new System.Drawing.Point(24, 251);
|
|
385 |
this.PBSSetting.Location = new System.Drawing.Point(24, 277);
|
|
382 | 386 |
this.PBSSetting.Name = "PBSSetting"; |
383 | 387 |
this.PBSSetting.Size = new System.Drawing.Size(233, 22); |
384 | 388 |
this.PBSSetting.StyleController = this.layoutControl1; |
... | ... | |
443 | 447 |
this.layoutControlItem15, |
444 | 448 |
this.layoutControlItem16, |
445 | 449 |
this.layoutControlItem7, |
446 |
this.layoutControlItem8}); |
|
450 |
this.layoutControlItem8, |
|
451 |
this.layoutControlItem10}); |
|
447 | 452 |
this.layoutControlGroupMain.Location = new System.Drawing.Point(0, 0); |
448 | 453 |
this.layoutControlGroupMain.Name = "layoutControlGroupMain"; |
449 | 454 |
this.layoutControlGroupMain.Size = new System.Drawing.Size(261, 631); |
... | ... | |
470 | 475 |
// emptySpaceItem1 |
471 | 476 |
// |
472 | 477 |
this.emptySpaceItem1.AllowHotTrack = false; |
473 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 234);
|
|
478 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 260);
|
|
474 | 479 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
475 |
this.emptySpaceItem1.Size = new System.Drawing.Size(237, 354);
|
|
480 |
this.emptySpaceItem1.Size = new System.Drawing.Size(237, 328);
|
|
476 | 481 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
477 | 482 |
// |
478 | 483 |
// layoutControlItem5 |
... | ... | |
514 | 519 |
// layoutControlItem16 |
515 | 520 |
// |
516 | 521 |
this.layoutControlItem16.Control = this.PBSSetting; |
517 |
this.layoutControlItem16.Location = new System.Drawing.Point(0, 208);
|
|
522 |
this.layoutControlItem16.Location = new System.Drawing.Point(0, 234);
|
|
518 | 523 |
this.layoutControlItem16.Name = "layoutControlItem16"; |
519 | 524 |
this.layoutControlItem16.Size = new System.Drawing.Size(237, 26); |
520 | 525 |
this.layoutControlItem16.TextSize = new System.Drawing.Size(0, 0); |
... | ... | |
668 | 673 |
this.sqLiteCommandBuilder1.DataAdapter = null; |
669 | 674 |
this.sqLiteCommandBuilder1.QuoteSuffix = "]"; |
670 | 675 |
// |
676 |
// MultiwaySetting |
|
677 |
// |
|
678 |
this.MultiwaySetting.Location = new System.Drawing.Point(24, 251); |
|
679 |
this.MultiwaySetting.Name = "MultiwaySetting"; |
|
680 |
this.MultiwaySetting.Size = new System.Drawing.Size(233, 22); |
|
681 |
this.MultiwaySetting.StyleController = this.layoutControl1; |
|
682 |
this.MultiwaySetting.TabIndex = 27; |
|
683 |
this.MultiwaySetting.Text = "Tie-In Setting"; |
|
684 |
this.MultiwaySetting.Click += new System.EventHandler(this.MultiwaySetting_Click); |
|
685 |
// |
|
686 |
// layoutControlItem10 |
|
687 |
// |
|
688 |
this.layoutControlItem10.Control = this.MultiwaySetting; |
|
689 |
this.layoutControlItem10.Location = new System.Drawing.Point(0, 208); |
|
690 |
this.layoutControlItem10.Name = "layoutControlItem10"; |
|
691 |
this.layoutControlItem10.Size = new System.Drawing.Size(237, 26); |
|
692 |
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0); |
|
693 |
this.layoutControlItem10.TextVisible = false; |
|
694 |
// |
|
671 | 695 |
// MainForm |
672 | 696 |
// |
673 | 697 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
... | ... | |
718 | 742 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit(); |
719 | 743 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit(); |
720 | 744 |
this.contextMenuPSN.ResumeLayout(false); |
745 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit(); |
|
721 | 746 |
this.ResumeLayout(false); |
722 | 747 |
this.PerformLayout(); |
723 | 748 | |
... | ... | |
780 | 805 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; |
781 | 806 |
private DevExpress.XtraEditors.SimpleButton btnHistory; |
782 | 807 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17; |
808 |
private DevExpress.XtraEditors.SimpleButton MultiwaySetting; |
|
809 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10; |
|
783 | 810 |
} |
784 | 811 |
} |
785 | 812 |
DTI_PID/ID2PSN/Form/MainForm.cs | ||
---|---|---|
1061 | 1061 |
form.ShowDialog(); |
1062 | 1062 |
} |
1063 | 1063 | |
1064 |
private void MultiwaySetting_Click(object sender, EventArgs e) |
|
1065 |
{ |
|
1066 |
TieInSetting form = new TieInSetting(); |
|
1067 |
form.ShowDialog(); |
|
1068 |
} |
|
1069 | ||
1064 | 1070 |
//private void AirFinCoolerSetting_Click(object sender, EventArgs e) |
1065 | 1071 |
//{ |
1066 | 1072 |
// AirFinCoolerSetting form = new AirFinCoolerSetting(); |
DTI_PID/ID2PSN/Form/MainForm.resx | ||
---|---|---|
118 | 118 |
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
119 | 119 |
</resheader> |
120 | 120 |
<metadata name="defaultLookAndFeel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
121 |
<value>17, 56</value>
|
|
121 |
<value>197, 17</value>
|
|
122 | 122 |
</metadata> |
123 | 123 |
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
124 | 124 |
<data name="btnSaveAs.ImageOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
... | ... | |
344 | 344 |
</value> |
345 | 345 |
</data> |
346 | 346 |
<metadata name="contextMenuPSN.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
347 |
<value>17, 95</value>
|
|
347 |
<value>359, 17</value>
|
|
348 | 348 |
</metadata> |
349 | 349 |
<metadata name="sqLiteCommandBuilder1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
350 |
<value>17, 134</value>
|
|
350 |
<value>507, 17</value>
|
|
351 | 351 |
</metadata> |
352 | 352 |
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
353 | 353 |
<value>25</value> |
DTI_PID/ID2PSN/Form/MultiwaySetting.Designer.cs | ||
---|---|---|
1 |
namespace ID2PSN |
|
2 |
{ |
|
3 |
partial class MultiwaySetting |
|
4 |
{ |
|
5 |
/// <summary> |
|
6 |
/// Required designer variable. |
|
7 |
/// </summary> |
|
8 |
private System.ComponentModel.IContainer components = null; |
|
9 | ||
10 |
/// <summary> |
|
11 |
/// Clean up any resources being used. |
|
12 |
/// </summary> |
|
13 |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
14 |
protected override void Dispose(bool disposing) |
|
15 |
{ |
|
16 |
if (disposing && (components != null)) |
|
17 |
{ |
|
18 |
components.Dispose(); |
|
19 |
} |
|
20 |
base.Dispose(disposing); |
|
21 |
} |
|
22 | ||
23 |
#region Windows Form Designer generated code |
|
24 | ||
25 |
/// <summary> |
|
26 |
/// Required method for Designer support - do not modify |
|
27 |
/// the contents of this method with the code editor. |
|
28 |
/// </summary> |
|
29 |
private void InitializeComponent() |
|
30 |
{ |
|
31 |
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MultiwaySetting)); |
|
32 |
this.ribbonControl = new DevExpress.XtraBars.Ribbon.RibbonControl(); |
|
33 |
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
|
34 |
this.labelControlToolTip = new DevExpress.XtraEditors.LabelControl(); |
|
35 |
this.gridControlMultiway = new DevExpress.XtraGrid.GridControl(); |
|
36 |
this.gridViewMultiway = new DevExpress.XtraGrid.Views.Grid.GridView(); |
|
37 |
this.btnClose = new DevExpress.XtraEditors.SimpleButton(); |
|
38 |
this.btnSave = new DevExpress.XtraEditors.SimpleButton(); |
|
39 |
this.btnAddSymbol = new DevExpress.XtraEditors.SimpleButton(); |
|
40 |
this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
41 |
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
42 |
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
43 |
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
44 |
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
45 |
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup(); |
|
46 |
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
47 |
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
48 |
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
49 |
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); |
|
50 |
this.emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem(); |
|
51 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).BeginInit(); |
|
52 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); |
|
53 |
this.layoutControl1.SuspendLayout(); |
|
54 |
((System.ComponentModel.ISupportInitialize)(this.gridControlMultiway)).BeginInit(); |
|
55 |
((System.ComponentModel.ISupportInitialize)(this.gridViewMultiway)).BeginInit(); |
|
56 |
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); |
|
57 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit(); |
|
58 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit(); |
|
59 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit(); |
|
60 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit(); |
|
61 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit(); |
|
62 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit(); |
|
63 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit(); |
|
64 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit(); |
|
65 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit(); |
|
66 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).BeginInit(); |
|
67 |
this.SuspendLayout(); |
|
68 |
// |
|
69 |
// ribbonControl |
|
70 |
// |
|
71 |
this.ribbonControl.ExpandCollapseItem.Id = 0; |
|
72 |
this.ribbonControl.Items.AddRange(new DevExpress.XtraBars.BarItem[] { |
|
73 |
this.ribbonControl.ExpandCollapseItem, |
|
74 |
this.ribbonControl.SearchEditItem}); |
|
75 |
this.ribbonControl.Location = new System.Drawing.Point(0, 0); |
|
76 |
this.ribbonControl.MaxItemId = 1; |
|
77 |
this.ribbonControl.Name = "ribbonControl"; |
|
78 |
this.ribbonControl.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; |
|
79 |
this.ribbonControl.ShowDisplayOptionsMenuButton = DevExpress.Utils.DefaultBoolean.False; |
|
80 |
this.ribbonControl.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
|
81 |
this.ribbonControl.ShowToolbarCustomizeItem = false; |
|
82 |
this.ribbonControl.Size = new System.Drawing.Size(488, 32); |
|
83 |
this.ribbonControl.Toolbar.ShowCustomizeItem = false; |
|
84 |
// |
|
85 |
// layoutControl1 |
|
86 |
// |
|
87 |
this.layoutControl1.Controls.Add(this.labelControlToolTip); |
|
88 |
this.layoutControl1.Controls.Add(this.gridControlMultiway); |
|
89 |
this.layoutControl1.Controls.Add(this.btnClose); |
|
90 |
this.layoutControl1.Controls.Add(this.btnSave); |
|
91 |
this.layoutControl1.Controls.Add(this.btnAddSymbol); |
|
92 |
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; |
|
93 |
this.layoutControl1.Location = new System.Drawing.Point(0, 32); |
|
94 |
this.layoutControl1.Name = "layoutControl1"; |
|
95 |
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(488, 408, 650, 400); |
|
96 |
this.layoutControl1.Root = this.Root; |
|
97 |
this.layoutControl1.Size = new System.Drawing.Size(488, 643); |
|
98 |
this.layoutControl1.TabIndex = 1; |
|
99 |
this.layoutControl1.Text = "layoutControl1"; |
|
100 |
// |
|
101 |
// labelControlToolTip |
|
102 |
// |
|
103 |
this.labelControlToolTip.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; |
|
104 |
this.labelControlToolTip.ImageAlignToText = DevExpress.XtraEditors.ImageAlignToText.RightCenter; |
|
105 |
this.labelControlToolTip.ImageOptions.Alignment = System.Drawing.ContentAlignment.MiddleLeft; |
|
106 |
this.labelControlToolTip.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("labelControlToolTip.ImageOptions.Image"))); |
|
107 |
this.labelControlToolTip.Location = new System.Drawing.Point(406, 12); |
|
108 |
this.labelControlToolTip.Name = "labelControlToolTip"; |
|
109 |
this.labelControlToolTip.Size = new System.Drawing.Size(70, 16); |
|
110 |
this.labelControlToolTip.StyleController = this.layoutControl1; |
|
111 |
this.labelControlToolTip.TabIndex = 7; |
|
112 |
this.labelControlToolTip.Text = "Tool Tip"; |
|
113 |
// |
|
114 |
// gridControlMultiway |
|
115 |
// |
|
116 |
this.gridControlMultiway.Location = new System.Drawing.Point(24, 89); |
|
117 |
this.gridControlMultiway.MainView = this.gridViewMultiway; |
|
118 |
this.gridControlMultiway.MenuManager = this.ribbonControl; |
|
119 |
this.gridControlMultiway.Name = "gridControlMultiway"; |
|
120 |
this.gridControlMultiway.Size = new System.Drawing.Size(440, 490); |
|
121 |
this.gridControlMultiway.TabIndex = 4; |
|
122 |
this.gridControlMultiway.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { |
|
123 |
this.gridViewMultiway}); |
|
124 |
// |
|
125 |
// gridViewMultiway |
|
126 |
// |
|
127 |
this.gridViewMultiway.GridControl = this.gridControlMultiway; |
|
128 |
this.gridViewMultiway.Name = "gridViewMultiway"; |
|
129 |
this.gridViewMultiway.OptionsView.ShowGroupPanel = false; |
|
130 |
// |
|
131 |
// btnClose |
|
132 |
// |
|
133 |
this.btnClose.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.ImageOptions.Image"))); |
|
134 |
this.btnClose.Location = new System.Drawing.Point(406, 595); |
|
135 |
this.btnClose.Name = "btnClose"; |
|
136 |
this.btnClose.Size = new System.Drawing.Size(70, 36); |
|
137 |
this.btnClose.StyleController = this.layoutControl1; |
|
138 |
this.btnClose.TabIndex = 5; |
|
139 |
this.btnClose.Text = "Close"; |
|
140 |
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); |
|
141 |
// |
|
142 |
// btnSave |
|
143 |
// |
|
144 |
this.btnSave.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.ImageOptions.Image"))); |
|
145 |
this.btnSave.Location = new System.Drawing.Point(314, 595); |
|
146 |
this.btnSave.Name = "btnSave"; |
|
147 |
this.btnSave.Size = new System.Drawing.Size(68, 36); |
|
148 |
this.btnSave.StyleController = this.layoutControl1; |
|
149 |
this.btnSave.TabIndex = 6; |
|
150 |
this.btnSave.Text = "Save"; |
|
151 |
this.btnSave.Click += new System.EventHandler(this.btnSave_Click); |
|
152 |
// |
|
153 |
// btnAddSymbol |
|
154 |
// |
|
155 |
this.btnAddSymbol.Location = new System.Drawing.Point(370, 63); |
|
156 |
this.btnAddSymbol.Name = "btnAddSymbol"; |
|
157 |
this.btnAddSymbol.Size = new System.Drawing.Size(94, 22); |
|
158 |
this.btnAddSymbol.StyleController = this.layoutControl1; |
|
159 |
this.btnAddSymbol.TabIndex = 2; |
|
160 |
this.btnAddSymbol.Text = " Add Symbol"; |
|
161 |
this.btnAddSymbol.Click += new System.EventHandler(this.btnAddSymbol_Click); |
|
162 |
// |
|
163 |
// Root |
|
164 |
// |
|
165 |
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; |
|
166 |
this.Root.GroupBordersVisible = false; |
|
167 |
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
168 |
this.emptySpaceItem3, |
|
169 |
this.layoutControlItem4, |
|
170 |
this.layoutControlItem5, |
|
171 |
this.emptySpaceItem2, |
|
172 |
this.layoutControlGroup2, |
|
173 |
this.layoutControlItem7, |
|
174 |
this.emptySpaceItem5}); |
|
175 |
this.Root.Name = "Root"; |
|
176 |
this.Root.Size = new System.Drawing.Size(488, 643); |
|
177 |
this.Root.TextVisible = false; |
|
178 |
// |
|
179 |
// emptySpaceItem3 |
|
180 |
// |
|
181 |
this.emptySpaceItem3.AllowHotTrack = false; |
|
182 |
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 583); |
|
183 |
this.emptySpaceItem3.Name = "emptySpaceItem3"; |
|
184 |
this.emptySpaceItem3.Size = new System.Drawing.Size(302, 40); |
|
185 |
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0); |
|
186 |
// |
|
187 |
// layoutControlItem4 |
|
188 |
// |
|
189 |
this.layoutControlItem4.Control = this.btnSave; |
|
190 |
this.layoutControlItem4.Location = new System.Drawing.Point(302, 583); |
|
191 |
this.layoutControlItem4.MaxSize = new System.Drawing.Size(72, 40); |
|
192 |
this.layoutControlItem4.MinSize = new System.Drawing.Size(72, 40); |
|
193 |
this.layoutControlItem4.Name = "layoutControlItem4"; |
|
194 |
this.layoutControlItem4.Size = new System.Drawing.Size(72, 40); |
|
195 |
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
196 |
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0); |
|
197 |
this.layoutControlItem4.TextVisible = false; |
|
198 |
// |
|
199 |
// layoutControlItem5 |
|
200 |
// |
|
201 |
this.layoutControlItem5.Control = this.btnClose; |
|
202 |
this.layoutControlItem5.Location = new System.Drawing.Point(394, 583); |
|
203 |
this.layoutControlItem5.MaxSize = new System.Drawing.Size(74, 40); |
|
204 |
this.layoutControlItem5.MinSize = new System.Drawing.Size(74, 40); |
|
205 |
this.layoutControlItem5.Name = "layoutControlItem5"; |
|
206 |
this.layoutControlItem5.Size = new System.Drawing.Size(74, 40); |
|
207 |
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
208 |
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0); |
|
209 |
this.layoutControlItem5.TextVisible = false; |
|
210 |
// |
|
211 |
// emptySpaceItem2 |
|
212 |
// |
|
213 |
this.emptySpaceItem2.AllowHotTrack = false; |
|
214 |
this.emptySpaceItem2.Location = new System.Drawing.Point(374, 583); |
|
215 |
this.emptySpaceItem2.MaxSize = new System.Drawing.Size(20, 40); |
|
216 |
this.emptySpaceItem2.MinSize = new System.Drawing.Size(20, 40); |
|
217 |
this.emptySpaceItem2.Name = "emptySpaceItem2"; |
|
218 |
this.emptySpaceItem2.Size = new System.Drawing.Size(20, 40); |
|
219 |
this.emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
220 |
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0); |
|
221 |
// |
|
222 |
// layoutControlGroup2 |
|
223 |
// |
|
224 |
this.layoutControlGroup2.CustomizationFormText = "Multiway Items"; |
|
225 |
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { |
|
226 |
this.layoutControlItem6, |
|
227 |
this.layoutControlItem3, |
|
228 |
this.emptySpaceItem1}); |
|
229 |
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 20); |
|
230 |
this.layoutControlGroup2.Name = "layoutControlGroup2"; |
|
231 |
this.layoutControlGroup2.Size = new System.Drawing.Size(468, 563); |
|
232 |
this.layoutControlGroup2.Text = "Multiway Items"; |
|
233 |
// |
|
234 |
// layoutControlItem6 |
|
235 |
// |
|
236 |
this.layoutControlItem6.Control = this.gridControlMultiway; |
|
237 |
this.layoutControlItem6.Location = new System.Drawing.Point(0, 26); |
|
238 |
this.layoutControlItem6.Name = "layoutControlItem6"; |
|
239 |
this.layoutControlItem6.Size = new System.Drawing.Size(444, 494); |
|
240 |
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0); |
|
241 |
this.layoutControlItem6.TextVisible = false; |
|
242 |
// |
|
243 |
// layoutControlItem3 |
|
244 |
// |
|
245 |
this.layoutControlItem3.Control = this.btnAddSymbol; |
|
246 |
this.layoutControlItem3.Location = new System.Drawing.Point(346, 0); |
|
247 |
this.layoutControlItem3.Name = "layoutControlItem3"; |
|
248 |
this.layoutControlItem3.Size = new System.Drawing.Size(98, 26); |
|
249 |
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0); |
|
250 |
this.layoutControlItem3.TextVisible = false; |
|
251 |
// |
|
252 |
// emptySpaceItem1 |
|
253 |
// |
|
254 |
this.emptySpaceItem1.AllowHotTrack = false; |
|
255 |
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem3"; |
|
256 |
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 0); |
|
257 |
this.emptySpaceItem1.Name = "emptySpaceItem1"; |
|
258 |
this.emptySpaceItem1.Size = new System.Drawing.Size(346, 26); |
|
259 |
this.emptySpaceItem1.Text = "emptySpaceItem3"; |
|
260 |
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0); |
|
261 |
// |
|
262 |
// layoutControlItem7 |
|
263 |
// |
|
264 |
this.layoutControlItem7.Control = this.labelControlToolTip; |
|
265 |
this.layoutControlItem7.Location = new System.Drawing.Point(394, 0); |
|
266 |
this.layoutControlItem7.MaxSize = new System.Drawing.Size(74, 20); |
|
267 |
this.layoutControlItem7.MinSize = new System.Drawing.Size(74, 20); |
|
268 |
this.layoutControlItem7.Name = "layoutControlItem7"; |
|
269 |
this.layoutControlItem7.Size = new System.Drawing.Size(74, 20); |
|
270 |
this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom; |
|
271 |
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0); |
|
272 |
this.layoutControlItem7.TextVisible = false; |
|
273 |
// |
|
274 |
// emptySpaceItem5 |
|
275 |
// |
|
276 |
this.emptySpaceItem5.AllowHotTrack = false; |
|
277 |
this.emptySpaceItem5.Location = new System.Drawing.Point(0, 0); |
|
278 |
this.emptySpaceItem5.Name = "emptySpaceItem5"; |
|
279 |
this.emptySpaceItem5.Size = new System.Drawing.Size(394, 20); |
|
280 |
this.emptySpaceItem5.TextSize = new System.Drawing.Size(0, 0); |
|
281 |
// |
|
282 |
// MultiwaySetting |
|
283 |
// |
|
284 |
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); |
|
285 |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
|
286 |
this.ClientSize = new System.Drawing.Size(488, 675); |
|
287 |
this.Controls.Add(this.layoutControl1); |
|
288 |
this.Controls.Add(this.ribbonControl); |
|
289 |
this.Name = "MultiwaySetting"; |
|
290 |
this.Ribbon = this.ribbonControl; |
|
291 |
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; |
|
292 |
this.Text = "Multiway Symbol Setting"; |
|
293 |
((System.ComponentModel.ISupportInitialize)(this.ribbonControl)).EndInit(); |
|
294 |
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); |
|
295 |
this.layoutControl1.ResumeLayout(false); |
|
296 |
((System.ComponentModel.ISupportInitialize)(this.gridControlMultiway)).EndInit(); |
|
297 |
((System.ComponentModel.ISupportInitialize)(this.gridViewMultiway)).EndInit(); |
|
298 |
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); |
|
299 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit(); |
|
300 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit(); |
|
301 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit(); |
|
302 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit(); |
|
303 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit(); |
|
304 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit(); |
|
305 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit(); |
|
306 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit(); |
|
307 |
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit(); |
|
308 |
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).EndInit(); |
|
309 |
this.ResumeLayout(false); |
|
310 |
this.PerformLayout(); |
|
311 | ||
312 |
} |
|
313 | ||
314 |
#endregion |
|
315 | ||
316 |
private DevExpress.XtraBars.Ribbon.RibbonControl ribbonControl; |
|
317 |
private DevExpress.XtraLayout.LayoutControl layoutControl1; |
|
318 |
private DevExpress.XtraLayout.LayoutControlGroup Root; |
|
319 |
private DevExpress.XtraEditors.SimpleButton btnAddSymbol; |
|
320 |
private DevExpress.XtraEditors.SimpleButton btnClose; |
|
321 |
private DevExpress.XtraEditors.SimpleButton btnSave; |
|
322 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; |
|
323 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; |
|
324 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3; |
|
325 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; |
|
326 |
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2; |
|
327 |
private DevExpress.XtraEditors.LabelControl labelControlToolTip; |
|
328 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; |
|
329 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5; |
|
330 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
|
331 |
private DevExpress.XtraGrid.GridControl gridControlMultiway; |
|
332 |
private DevExpress.XtraGrid.Views.Grid.GridView gridViewMultiway; |
|
333 |
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; |
|
334 |
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; |
|
335 |
} |
|
336 |
} |
DTI_PID/ID2PSN/Form/MultiwaySetting.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.ComponentModel; |
|
4 |
using System.Data; |
|
5 |
using System.Drawing; |
|
6 |
using System.Linq; |
|
7 |
using System.Text; |
|
8 |
using System.Threading.Tasks; |
|
9 |
using System.Windows.Forms; |
|
10 |
using System.IO; |
|
11 |
using DevExpress.XtraEditors.Repository; |
|
12 |
using DevExpress.XtraGrid.Columns; |
|
13 |
using DevExpress.XtraGrid; |
|
14 |
using DevExpress.XtraGrid.Views.Grid; |
|
15 |
using DevExpress.Utils.StructuredStorage.Internal.Reader; |
|
16 |
using DevExpress.XtraTreeList; |
|
17 |
using DevExpress.XtraTreeList.Columns; |
|
18 |
using DevExpress.XtraTreeList.Nodes; |
|
19 |
using DevExpress.Utils.Extensions; |
|
20 |
using DevExpress.Utils; |
|
21 |
using DevExpress.Utils.Drawing; |
|
22 | ||
23 |
namespace ID2PSN |
|
24 |
{ |
|
25 |
public partial class MultiwaySetting : DevExpress.XtraBars.Ribbon.RibbonForm |
|
26 |
{ |
|
27 |
ID2Info ID2Info = ID2Info.GetInstance(); |
|
28 |
List<MultiwayInfo> MultiwayInfos = new List<MultiwayInfo>(); |
|
29 |
MultiwayInfo currentMultiwayInfo = null; |
|
30 | ||
31 |
public MultiwaySetting() |
|
32 |
{ |
|
33 |
InitializeComponent(); |
|
34 | ||
35 |
InitGridMultiway(); |
|
36 | ||
37 |
gridViewMultiway.CellValueChanged += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridViewSymbol_CellValueChanged); |
|
38 | ||
39 |
MultiwayInfos = new List<MultiwayInfo>(); |
|
40 |
currentMultiwayInfo = new MultiwayInfo(); |
|
41 | ||
42 |
InitData(); |
|
43 |
|
|
44 |
SuperToolTip sTooltip1 = new SuperToolTip(); |
|
45 |
|
|
46 |
ToolTipTitleItem titleItem1 = new ToolTipTitleItem(); |
|
47 |
titleItem1.Text = "Index Information"; |
|
48 |
|
|
49 |
ToolTipItem item1 = new ToolTipItem(); |
|
50 |
item1.ImageOptions.Image = ((Image)Properties.Resources.ResourceManager.GetObject("ToolTip1", System.Globalization.CultureInfo.CurrentCulture)); |
|
51 |
//item1.Text = "Show the Edit popup menu"; |
|
52 |
|
|
53 |
sTooltip1.Items.Add(titleItem1); |
|
54 |
sTooltip1.Items.Add(item1); |
|
55 | ||
56 |
labelControlToolTip.SuperTip = sTooltip1; |
|
57 |
} |
|
58 | ||
59 |
public void InitGridMultiway() |
|
60 |
{ |
|
61 |
RepositoryItemButtonEdit btnRemove = new RepositoryItemButtonEdit(); |
|
62 |
btnRemove.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
|
63 |
btnRemove.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(removeSymbolButton_Click); |
|
64 |
btnRemove.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph; |
|
65 |
btnRemove.Buttons[0].ImageOptions.Image = ID2PSN.Properties.Resources.cancel_16x16; |
|
66 |
|
|
67 |
gridControlMultiway.RepositoryItems.Add(btnRemove); |
|
68 | ||
69 |
DataTable dtType = new DataTable(); |
|
70 |
dtType.Columns.Add("Index"); |
|
71 |
dtType.Columns.Add("Multiways"); |
|
72 |
dtType.Columns.Add("Name"); |
|
73 |
dtType.Columns.Add(" "); |
|
74 |
gridControlMultiway.DataSource = dtType; |
|
75 | ||
76 |
GridColumn gridColumn = gridViewMultiway.Columns[0]; |
|
77 |
gridColumn.Name = "Index"; |
|
78 |
gridColumn.Caption = "Index"; |
|
79 |
gridColumn.OptionsColumn.AllowEdit = false; |
|
80 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
81 |
gridColumn.VisibleIndex = 0; |
|
82 |
gridColumn = gridViewMultiway.Columns[1]; |
|
83 |
gridColumn.Name = "Multiways"; |
|
84 |
gridColumn.Caption = "Transform Key Words"; |
|
85 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
86 |
gridColumn.VisibleIndex = 1; |
|
87 |
//gridColumn.AppearanceHeader.BackColor = Color.Red; |
|
88 |
|
|
89 |
gridColumn = gridViewMultiway.Columns[2]; |
|
90 |
gridColumn.Name = "Name"; |
|
91 |
gridColumn.Caption = "ID2 Symbol Name"; |
|
92 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
93 |
gridColumn.VisibleIndex = 2; |
|
94 | ||
95 |
RepositoryItemTreeListLookUpEdit treeListLookUpEdit = new RepositoryItemTreeListLookUpEdit(); |
|
96 |
gridControlMultiway.RepositoryItems.Add(treeListLookUpEdit); |
|
97 |
SetSymbol(treeListLookUpEdit); |
|
98 |
gridColumn.ColumnEdit = treeListLookUpEdit; |
|
99 | ||
100 |
gridColumn = gridViewMultiway.Columns[3]; |
|
101 |
gridColumn.Name = "Remove"; |
|
102 |
gridColumn.Caption = ""; |
|
103 |
gridColumn.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; |
|
104 |
gridColumn.VisibleIndex = 3; |
|
105 |
gridColumn.MaxWidth = 16; |
|
106 |
|
|
107 |
gridColumn.ColumnEdit = btnRemove; |
|
108 |
gridColumn.ShowButtonMode = DevExpress.XtraGrid.Views.Base.ShowButtonModeEnum.ShowAlways; |
|
109 |
//gridViewMultiway.CustomDrawColumnHeader += GridViewMultiway_CustomDrawColumnHeader; |
|
110 |
} |
|
111 | ||
112 |
private void GridViewMultiway_CustomDrawColumnHeader(object sender, ColumnHeaderCustomDrawEventArgs e) |
|
113 |
{ |
|
114 |
if (e.Column == null || (e.Column.AppearanceHeader.BackColor == Color.Empty && !e.Column.AppearanceHeader.Options.UseBackColor)) |
|
115 | ||
116 |
return; |
|
117 | ||
118 |
Rectangle rect = e.Bounds; |
|
119 | ||
120 |
rect.Inflate(-1, -1); |
|
121 | ||
122 |
// Fill the title color. |
|
123 | ||
124 |
e.Graphics.FillRectangle(new SolidBrush(e.Column.AppearanceHeader.BackColor), rect); |
|
125 | ||
126 |
e.Appearance.DrawString(e.Cache, e.Info.Caption, e.Info.CaptionRect); |
|
127 | ||
128 |
// Draw filter and sort buttons. |
|
129 | ||
130 |
foreach (DrawElementInfo info in e.Info.InnerElements) |
|
131 | ||
132 |
{ |
|
133 | ||
134 |
if (!info.Visible) continue; |
|
135 | ||
136 |
ObjectPainter.DrawObject(e.Cache, info.ElementPainter, info.ElementInfo); |
|
137 | ||
138 |
} |
|
139 | ||
140 |
e.Handled = true; |
|
141 |
} |
|
142 | ||
143 |
public void InitData() |
|
144 |
{ |
내보내기 Unified diff