Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmUnit.cs @ 150:0e3837170637
Re #269: Handle multiple stat lines
* Add initial rebuild with multiple possible statlines - only tested with one stat line type
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 02 May 2010 15:46:24 +0000 |
parents | 51463bc1fb21 |
children | 540c8aa6e565 |
comparison
equal
deleted
inserted
replaced
149:def0c33a662c | 150:0e3837170637 |
---|---|
25 /// </summary> | 25 /// </summary> |
26 public class FrmUnit : IBBoard.Windows.Forms.IBBForm | 26 public class FrmUnit : IBBoard.Windows.Forms.IBBForm |
27 { | 27 { |
28 private Unit unit; | 28 private Unit unit; |
29 private Dictionary<UnitEquipmentItem, UnitEquipmentChoice> equipmentChoices = new Dictionary<UnitEquipmentItem, UnitEquipmentChoice>(); | 29 private Dictionary<UnitEquipmentItem, UnitEquipmentChoice> equipmentChoices = new Dictionary<UnitEquipmentItem, UnitEquipmentChoice>(); |
30 private Dictionary<string, DataGrid> dataGrids = new Dictionary<string, DataGrid>(); | |
30 private CommandStack commandStack; | 31 private CommandStack commandStack; |
31 private System.Windows.Forms.DataGrid statsGrid; | |
32 private System.Windows.Forms.TextBox tbUnitName; | 32 private System.Windows.Forms.TextBox tbUnitName; |
33 private System.Windows.Forms.NumericUpDown unitSize; | 33 private System.Windows.Forms.NumericUpDown unitSize; |
34 private IBBLabel lblUnitSize; | 34 private IBBLabel lblUnitSize; |
35 private IBBButton bttnAddWeapon; | 35 private IBBButton bttnAddWeapon; |
36 private IBBButton bttnRemoveWeapon; | 36 private IBBButton bttnRemoveWeapon; |
41 private Label lblPoints; | 41 private Label lblPoints; |
42 private IBBLabel lblNotes; | 42 private IBBLabel lblNotes; |
43 private TextBox notes; | 43 private TextBox notes; |
44 private ListBox abilitiesList; | 44 private ListBox abilitiesList; |
45 private IBBLabel lblAbilities; | 45 private IBBLabel lblAbilities; |
46 private Panel statsPanel; | |
46 /// <summary> | 47 /// <summary> |
47 /// Required designer variable. | 48 /// Required designer variable. |
48 /// </summary> | 49 /// </summary> |
49 private System.ComponentModel.Container components = null; | 50 private System.ComponentModel.Container components = null; |
50 | 51 |
94 lblPoints.Text = "(" + unit.Points + " pts)"; | 95 lblPoints.Text = "(" + unit.Points + " pts)"; |
95 } | 96 } |
96 | 97 |
97 private void SetStats() | 98 private void SetStats() |
98 { | 99 { |
99 DataTable dt = new DataTable(); | 100 Stat[][] stats = unit.UnitStatsArraysWithName; |
100 Stat[] stats = unit.UnitStatsArrayWithName; | 101 string[] statsIDs = unit.UnitStatsArrayIDs; |
101 int statsCount = stats.Length; | 102 int statsCount = stats.Length; |
102 DataColumn[] dc = new DataColumn[statsCount]; | 103 |
103 | 104 for (int i = 0; i < statsCount; i++) |
105 { | |
106 DataGrid statsGrid = GetDataGrid(statsIDs[i]); | |
107 DataTable dt = (DataTable)statsGrid.DataSource; | |
108 DataRow dr = dt.NewRow(); | |
109 dr.ItemArray = stats[i]; | |
110 dt.Rows.Add(dr); | |
111 } | |
112 } | |
113 | |
114 private DataGrid GetDataGrid(string statsID) | |
115 { | |
116 DataGrid grid; | |
117 | |
118 if (dataGrids.ContainsKey(statsID)) | |
119 { | |
120 grid = DictionaryUtils.GetValue(dataGrids, statsID); | |
121 } | |
122 else | |
123 { | |
124 grid = CreateDataGrid(statsID); | |
125 dataGrids[statsID] = grid; | |
126 } | |
127 | |
128 return grid; | |
129 } | |
130 | |
131 private DataGrid CreateDataGrid(string statsID) | |
132 { | |
133 SystemStats sysStats = unit.Race.GameSystem.GetSystemStatsForID(statsID); | |
134 StatSlot[] sysStatSlots = sysStats.StatSlots; | |
135 StatSlot[] stats = new StatSlot[sysStatSlots.Length + 1]; | |
136 stats[0] = new StatSlot("Name"); | |
137 sysStatSlots.CopyTo(stats, 1); | |
138 DataColumn[] dc = new DataColumn[stats.Length]; | |
104 DataGridTableStyle dgStyle = new DataGridTableStyle(); | 139 DataGridTableStyle dgStyle = new DataGridTableStyle(); |
105 dgStyle.RowHeadersVisible = false; | 140 dgStyle.RowHeadersVisible = false; |
106 | 141 DataTable dt = new DataTable(); |
107 Stat stat = stats[0]; | 142 int statsCount = stats.Length; |
108 DataColumn tempCol = new DataColumn(stat.ParentSlotName); | |
109 tempCol.DataType = stat.GetType(); | |
110 | 143 |
111 for (int i = 0; i < statsCount; i++) | 144 for (int i = 0; i < statsCount; i++) |
112 { | 145 { |
113 stat = stats[i]; | 146 StatSlot stat = stats[i]; |
114 tempCol = new DataColumn(stat.ParentSlotName); | 147 string slotName = stat.Name; |
115 tempCol.DataType = stat.GetType(); | 148 dc[i] = CreateDataColumn(slotName); |
116 dc[i] = tempCol; | 149 dgStyle.GridColumnStyles.Add(CreateColumnStyle(slotName)); |
117 DataGridColumnStyle colStyle = new StatColumnStyle(); | |
118 colStyle.Width = 40; | |
119 colStyle.MappingName = stat.ParentSlotName; | |
120 colStyle.HeaderText = stat.ParentSlotName; | |
121 colStyle.Alignment = HorizontalAlignment.Center; | |
122 colStyle.ReadOnly = true; | |
123 dgStyle.GridColumnStyles.Add(colStyle); | |
124 } | 150 } |
125 | 151 |
126 DataGridColumnStyle nameColStyle = dgStyle.GridColumnStyles[0]; | 152 DataGridColumnStyle nameColStyle = dgStyle.GridColumnStyles[0]; |
127 nameColStyle.HeaderText = Translation.GetTranslation("UnitName", "Name"); | 153 nameColStyle.HeaderText = Translation.GetTranslation("UnitName", "Name"); |
128 nameColStyle.Alignment = HorizontalAlignment.Left; | 154 nameColStyle.Alignment = HorizontalAlignment.Left; |
129 nameColStyle.Width = statsGrid.ClientSize.Width - ((stats.Length - 1) * 40) - 4; | 155 DataGrid statsGrid = CreateDataGrid(); |
156 nameColStyle.Width = statsGrid.ClientSize.Width - ((stats.Length) * 40) - 4; | |
130 | 157 |
131 dt.Columns.AddRange(dc); | 158 dt.Columns.AddRange(dc); |
132 | |
133 DataRow dr = dt.NewRow(); | |
134 dr.ItemArray = stats; | |
135 dt.Rows.Add(dr); | |
136 statsGrid.DataSource = dt; | 159 statsGrid.DataSource = dt; |
137 statsGrid.TableStyles.Add(dgStyle); | 160 statsGrid.TableStyles.Add(dgStyle); |
161 return statsGrid; | |
162 } | |
163 | |
164 private static DataColumn CreateDataColumn(string slotName) | |
165 { | |
166 DataColumn tempCol = new DataColumn(slotName); | |
167 tempCol.DataType = typeof(Stat); | |
168 return tempCol; | |
169 } | |
170 | |
171 private static DataGridColumnStyle CreateColumnStyle(string slotName) | |
172 { | |
173 DataGridColumnStyle colStyle = new StatColumnStyle(); | |
174 colStyle.Width = 40; | |
175 colStyle.MappingName = slotName; | |
176 colStyle.HeaderText = slotName; | |
177 colStyle.Alignment = HorizontalAlignment.Center; | |
178 colStyle.ReadOnly = true; | |
179 return colStyle; | |
180 } | |
181 | |
182 public DataGrid CreateDataGrid() | |
183 { | |
184 DataGrid statsGrid = new DataGrid(); | |
185 statsGrid.AllowNavigation = false; | |
186 statsGrid.AllowSorting = false; | |
187 statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |
188 | System.Windows.Forms.AnchorStyles.Right))); | |
189 statsGrid.CaptionVisible = false; | |
190 statsGrid.CausesValidation = false; | |
191 statsGrid.PreferredColumnWidth = 40; | |
192 statsGrid.ReadOnly = true; | |
193 statsGrid.RowHeadersVisible = false; | |
194 statsGrid.Size = new System.Drawing.Size(600, 88); | |
195 statsGrid.TabStop = false; | |
196 statsPanel.Controls.Add(statsGrid); | |
197 statsGrid.Width = statsPanel.Width; | |
198 return statsGrid; | |
138 } | 199 } |
139 | 200 |
140 private void SetWeapons() | 201 private void SetWeapons() |
141 { | 202 { |
142 foreach (UnitEquipmentItem item in unit.GetEquipment()) | 203 foreach (UnitEquipmentItem item in unit.GetEquipment()) |
183 /// Required method for Designer support - do not modify | 244 /// Required method for Designer support - do not modify |
184 /// the contents of this method with the code editor. | 245 /// the contents of this method with the code editor. |
185 /// </summary> | 246 /// </summary> |
186 private void InitializeComponent() | 247 private void InitializeComponent() |
187 { | 248 { |
188 this.statsGrid = new System.Windows.Forms.DataGrid(); | |
189 this.tbUnitName = new System.Windows.Forms.TextBox(); | 249 this.tbUnitName = new System.Windows.Forms.TextBox(); |
190 this.unitSize = new System.Windows.Forms.NumericUpDown(); | 250 this.unitSize = new System.Windows.Forms.NumericUpDown(); |
191 this.lblUnitSize = new IBBoard.Windows.Forms.IBBLabel(); | 251 this.lblUnitSize = new IBBoard.Windows.Forms.IBBLabel(); |
192 this.lblEquip = new IBBoard.Windows.Forms.IBBLabel(); | 252 this.lblEquip = new IBBoard.Windows.Forms.IBBLabel(); |
193 this.bttnAddWeapon = new IBBoard.Windows.Forms.IBBButton(); | 253 this.bttnAddWeapon = new IBBoard.Windows.Forms.IBBButton(); |
198 this.lblPoints = new System.Windows.Forms.Label(); | 258 this.lblPoints = new System.Windows.Forms.Label(); |
199 this.lblNotes = new IBBoard.Windows.Forms.IBBLabel(); | 259 this.lblNotes = new IBBoard.Windows.Forms.IBBLabel(); |
200 this.notes = new System.Windows.Forms.TextBox(); | 260 this.notes = new System.Windows.Forms.TextBox(); |
201 this.abilitiesList = new System.Windows.Forms.ListBox(); | 261 this.abilitiesList = new System.Windows.Forms.ListBox(); |
202 this.lblAbilities = new IBBoard.Windows.Forms.IBBLabel(); | 262 this.lblAbilities = new IBBoard.Windows.Forms.IBBLabel(); |
203 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit(); | 263 this.statsPanel = new System.Windows.Forms.Panel(); |
204 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit(); | 264 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).BeginInit(); |
205 this.SuspendLayout(); | 265 this.SuspendLayout(); |
206 // | |
207 // statsGrid | |
208 // | |
209 this.statsGrid.AllowNavigation = false; | |
210 this.statsGrid.AllowSorting = false; | |
211 this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control; | |
212 this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | |
213 | System.Windows.Forms.AnchorStyles.Right))); | |
214 this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control; | |
215 this.statsGrid.CaptionVisible = false; | |
216 this.statsGrid.CausesValidation = false; | |
217 this.statsGrid.DataMember = ""; | |
218 this.statsGrid.GridLineColor = System.Drawing.SystemColors.ControlDarkDark; | |
219 this.statsGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText; | |
220 this.statsGrid.Location = new System.Drawing.Point(8, 32); | |
221 this.statsGrid.Name = "statsGrid"; | |
222 this.statsGrid.PreferredColumnWidth = 40; | |
223 this.statsGrid.ReadOnly = true; | |
224 this.statsGrid.RowHeadersVisible = false; | |
225 this.statsGrid.SelectionBackColor = System.Drawing.SystemColors.Control; | |
226 this.statsGrid.SelectionForeColor = System.Drawing.SystemColors.WindowText; | |
227 this.statsGrid.Size = new System.Drawing.Size(600, 88); | |
228 this.statsGrid.TabIndex = 0; | |
229 this.statsGrid.TabStop = false; | |
230 // | 266 // |
231 // tbUnitName | 267 // tbUnitName |
232 // | 268 // |
233 this.tbUnitName.Location = new System.Drawing.Point(8, 8); | 269 this.tbUnitName.Location = new System.Drawing.Point(8, 8); |
234 this.tbUnitName.Name = "tbUnitName"; | 270 this.tbUnitName.Name = "tbUnitName"; |
235 this.tbUnitName.Size = new System.Drawing.Size(344, 20); | 271 this.tbUnitName.Size = new System.Drawing.Size(344, 20); |
236 this.tbUnitName.TabIndex = 1; | 272 this.tbUnitName.TabIndex = 1; |
273 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown); | |
237 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave); | 274 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave); |
238 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown); | |
239 // | 275 // |
240 // unitSize | 276 // unitSize |
241 // | 277 // |
242 this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 278 this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
243 this.unitSize.Location = new System.Drawing.Point(528, 8); | 279 this.unitSize.Location = new System.Drawing.Point(528, 8); |
244 this.unitSize.Name = "unitSize"; | 280 this.unitSize.Name = "unitSize"; |
245 this.unitSize.Size = new System.Drawing.Size(80, 20); | 281 this.unitSize.Size = new System.Drawing.Size(80, 20); |
246 this.unitSize.TabIndex = 1; | 282 this.unitSize.TabIndex = 1; |
247 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; | 283 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
253 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave); | 289 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave); |
254 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown); | 290 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown); |
255 // | 291 // |
256 // lblUnitSize | 292 // lblUnitSize |
257 // | 293 // |
258 this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 294 this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
259 this.lblUnitSize.Location = new System.Drawing.Point(426, 8); | 295 this.lblUnitSize.Location = new System.Drawing.Point(426, 8); |
260 this.lblUnitSize.Name = "lblUnitSize"; | 296 this.lblUnitSize.Name = "lblUnitSize"; |
261 this.lblUnitSize.Size = new System.Drawing.Size(98, 23); | 297 this.lblUnitSize.Size = new System.Drawing.Size(98, 23); |
262 this.lblUnitSize.TabIndex = 0; | 298 this.lblUnitSize.TabIndex = 0; |
263 this.lblUnitSize.Text = "unit size"; | 299 this.lblUnitSize.Text = "unit size"; |
272 this.lblEquip.Text = "equipment"; | 308 this.lblEquip.Text = "equipment"; |
273 this.lblEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; | 309 this.lblEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; |
274 // | 310 // |
275 // bttnAddWeapon | 311 // bttnAddWeapon |
276 // | 312 // |
277 this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 313 this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
278 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 314 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
279 this.bttnAddWeapon.Location = new System.Drawing.Point(516, 126); | 315 this.bttnAddWeapon.Location = new System.Drawing.Point(516, 126); |
280 this.bttnAddWeapon.Name = "bttnAddWeapon"; | 316 this.bttnAddWeapon.Name = "bttnAddWeapon"; |
281 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22); | 317 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22); |
282 this.bttnAddWeapon.TabIndex = 4; | 318 this.bttnAddWeapon.TabIndex = 4; |
283 this.bttnAddWeapon.Text = "add"; | 319 this.bttnAddWeapon.Text = "add"; |
284 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click); | 320 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click); |
285 // | 321 // |
286 // bttnRemoveWeapon | 322 // bttnRemoveWeapon |
287 // | 323 // |
288 this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 324 this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
289 this.bttnRemoveWeapon.Enabled = false; | 325 this.bttnRemoveWeapon.Enabled = false; |
290 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 326 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
291 this.bttnRemoveWeapon.Location = new System.Drawing.Point(516, 210); | 327 this.bttnRemoveWeapon.Location = new System.Drawing.Point(516, 210); |
292 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon"; | 328 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon"; |
293 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22); | 329 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22); |
295 this.bttnRemoveWeapon.Text = "remove"; | 331 this.bttnRemoveWeapon.Text = "remove"; |
296 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click); | 332 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click); |
297 // | 333 // |
298 // equipmentList | 334 // equipmentList |
299 // | 335 // |
300 this.equipmentList.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | 336 this.equipmentList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
301 | System.Windows.Forms.AnchorStyles.Right))); | 337 | System.Windows.Forms.AnchorStyles.Right))); |
302 this.equipmentList.Location = new System.Drawing.Point(102, 126); | 338 this.equipmentList.Location = new System.Drawing.Point(102, 126); |
303 this.equipmentList.Name = "equipmentList"; | 339 this.equipmentList.Name = "equipmentList"; |
304 this.equipmentList.Size = new System.Drawing.Size(408, 108); | 340 this.equipmentList.Size = new System.Drawing.Size(408, 108); |
305 this.equipmentList.TabIndex = 6; | 341 this.equipmentList.TabIndex = 6; |
342 this.equipmentList.SelectedIndexChanged += new System.EventHandler(this.equipmentList_SelectedIndexChanged); | |
306 this.equipmentList.DoubleClick += new System.EventHandler(this.equipmentList_DoubleClick); | 343 this.equipmentList.DoubleClick += new System.EventHandler(this.equipmentList_DoubleClick); |
307 this.equipmentList.SelectedIndexChanged += new System.EventHandler(this.equipmentList_SelectedIndexChanged); | |
308 // | 344 // |
309 // bttnReplaceWeapon | 345 // bttnReplaceWeapon |
310 // | 346 // |
311 this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 347 this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
312 this.bttnReplaceWeapon.Enabled = false; | 348 this.bttnReplaceWeapon.Enabled = false; |
313 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 349 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
314 this.bttnReplaceWeapon.Location = new System.Drawing.Point(516, 182); | 350 this.bttnReplaceWeapon.Location = new System.Drawing.Point(516, 182); |
315 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon"; | 351 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon"; |
316 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22); | 352 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22); |
318 this.bttnReplaceWeapon.Text = "replace"; | 354 this.bttnReplaceWeapon.Text = "replace"; |
319 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click); | 355 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click); |
320 // | 356 // |
321 // bttnEditWeapon | 357 // bttnEditWeapon |
322 // | 358 // |
323 this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles) ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); | 359 this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); |
324 this.bttnEditWeapon.Enabled = false; | 360 this.bttnEditWeapon.Enabled = false; |
325 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; | 361 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; |
326 this.bttnEditWeapon.Location = new System.Drawing.Point(516, 154); | 362 this.bttnEditWeapon.Location = new System.Drawing.Point(516, 154); |
327 this.bttnEditWeapon.Name = "bttnEditWeapon"; | 363 this.bttnEditWeapon.Name = "bttnEditWeapon"; |
328 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22); | 364 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22); |
371 this.lblAbilities.Size = new System.Drawing.Size(84, 62); | 407 this.lblAbilities.Size = new System.Drawing.Size(84, 62); |
372 this.lblAbilities.TabIndex = 16; | 408 this.lblAbilities.TabIndex = 16; |
373 this.lblAbilities.Text = "abilities"; | 409 this.lblAbilities.Text = "abilities"; |
374 this.lblAbilities.TextAlign = System.Drawing.ContentAlignment.TopRight; | 410 this.lblAbilities.TextAlign = System.Drawing.ContentAlignment.TopRight; |
375 // | 411 // |
412 // statsPanel | |
413 // | |
414 this.statsPanel.AutoScroll = true; | |
415 this.statsPanel.Location = new System.Drawing.Point(8, 35); | |
416 this.statsPanel.Name = "statsPanel"; | |
417 this.statsPanel.Size = new System.Drawing.Size(600, 85); | |
418 this.statsPanel.TabIndex = 17; | |
419 // | |
376 // FrmUnit | 420 // FrmUnit |
377 // | 421 // |
378 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | 422 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); |
379 this.ClientSize = new System.Drawing.Size(616, 391); | 423 this.ClientSize = new System.Drawing.Size(616, 391); |
424 this.Controls.Add(this.statsPanel); | |
380 this.Controls.Add(this.lblAbilities); | 425 this.Controls.Add(this.lblAbilities); |
381 this.Controls.Add(this.abilitiesList); | 426 this.Controls.Add(this.abilitiesList); |
382 this.Controls.Add(this.notes); | 427 this.Controls.Add(this.notes); |
383 this.Controls.Add(this.lblNotes); | 428 this.Controls.Add(this.lblNotes); |
384 this.Controls.Add(this.lblPoints); | 429 this.Controls.Add(this.lblPoints); |
389 this.Controls.Add(this.bttnAddWeapon); | 434 this.Controls.Add(this.bttnAddWeapon); |
390 this.Controls.Add(this.lblEquip); | 435 this.Controls.Add(this.lblEquip); |
391 this.Controls.Add(this.lblUnitSize); | 436 this.Controls.Add(this.lblUnitSize); |
392 this.Controls.Add(this.unitSize); | 437 this.Controls.Add(this.unitSize); |
393 this.Controls.Add(this.tbUnitName); | 438 this.Controls.Add(this.tbUnitName); |
394 this.Controls.Add(this.statsGrid); | |
395 this.Name = "FrmUnit"; | 439 this.Name = "FrmUnit"; |
396 this.ShowIcon = false; | 440 this.ShowIcon = false; |
397 this.ShowInTaskbar = false; | 441 this.ShowInTaskbar = false; |
398 this.Text = "FrmUnit"; | 442 this.Text = "FrmUnit"; |
399 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing); | 443 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmUnit_FormClosing); |
400 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).EndInit(); | 444 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).EndInit(); |
401 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).EndInit(); | |
402 this.ResumeLayout(false); | 445 this.ResumeLayout(false); |
403 this.PerformLayout(); | 446 this.PerformLayout(); |
404 | 447 |
405 } | 448 } |
406 #endregion | 449 #endregion |