comparison FrmUnit.cs @ 51:53a18feb2370

* Set anchoring for better handling of resizing dialog no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Tue, 15 Sep 2009 20:08:23 +0000
parents 740350673006
children 4a56900936aa
comparison
equal deleted inserted replaced
50:c972fb283675 51:53a18feb2370
186 this.bttnEditWeapon = new System.Windows.Forms.Button(); 186 this.bttnEditWeapon = new System.Windows.Forms.Button();
187 this.optList = new System.Windows.Forms.ListBox(); 187 this.optList = new System.Windows.Forms.ListBox();
188 this.lblOptionalEquip = new System.Windows.Forms.Label(); 188 this.lblOptionalEquip = new System.Windows.Forms.Label();
189 this.bttnReplaceWeapon = new System.Windows.Forms.Button(); 189 this.bttnReplaceWeapon = new System.Windows.Forms.Button();
190 this.bttnEditReqdWeapon = new System.Windows.Forms.Button(); 190 this.bttnEditReqdWeapon = new System.Windows.Forms.Button();
191 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).BeginInit(); 191 ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).BeginInit();
192 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).BeginInit(); 192 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).BeginInit();
193 this.SuspendLayout(); 193 this.SuspendLayout();
194 // 194 //
195 // statsGrid 195 // statsGrid
196 // 196 //
197 this.statsGrid.AllowNavigation = false; 197 this.statsGrid.AllowNavigation = false;
198 this.statsGrid.AllowSorting = false; 198 this.statsGrid.AllowSorting = false;
199 this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control; 199 this.statsGrid.AlternatingBackColor = System.Drawing.SystemColors.Control;
200 this.statsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
201 | System.Windows.Forms.AnchorStyles.Right)));
200 this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control; 202 this.statsGrid.BackgroundColor = System.Drawing.SystemColors.Control;
201 this.statsGrid.CaptionVisible = false; 203 this.statsGrid.CaptionVisible = false;
204 this.statsGrid.CausesValidation = false;
202 this.statsGrid.DataMember = ""; 205 this.statsGrid.DataMember = "";
203 this.statsGrid.GridLineColor = System.Drawing.SystemColors.ControlDarkDark; 206 this.statsGrid.GridLineColor = System.Drawing.SystemColors.ControlDarkDark;
204 this.statsGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText; 207 this.statsGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
205 this.statsGrid.Location = new System.Drawing.Point(8, 32); 208 this.statsGrid.Location = new System.Drawing.Point(8, 32);
206 this.statsGrid.Name = "statsGrid"; 209 this.statsGrid.Name = "statsGrid";
210 this.statsGrid.SelectionBackColor = System.Drawing.SystemColors.Control; 213 this.statsGrid.SelectionBackColor = System.Drawing.SystemColors.Control;
211 this.statsGrid.SelectionForeColor = System.Drawing.SystemColors.WindowText; 214 this.statsGrid.SelectionForeColor = System.Drawing.SystemColors.WindowText;
212 this.statsGrid.Size = new System.Drawing.Size(600, 88); 215 this.statsGrid.Size = new System.Drawing.Size(600, 88);
213 this.statsGrid.TabIndex = 0; 216 this.statsGrid.TabIndex = 0;
214 this.statsGrid.TabStop = false; 217 this.statsGrid.TabStop = false;
215 // 218 //
216 // tbUnitName 219 // tbUnitName
217 // 220 //
218 this.tbUnitName.Location = new System.Drawing.Point(8, 8); 221 this.tbUnitName.Location = new System.Drawing.Point(8, 8);
219 this.tbUnitName.Name = "tbUnitName"; 222 this.tbUnitName.Name = "tbUnitName";
220 this.tbUnitName.Size = new System.Drawing.Size(344, 20); 223 this.tbUnitName.Size = new System.Drawing.Size(344, 20);
221 this.tbUnitName.TabIndex = 1; 224 this.tbUnitName.TabIndex = 1;
222 this.tbUnitName.Text = ""; 225 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave);
223 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown); 226 this.tbUnitName.KeyDown += new System.Windows.Forms.KeyEventHandler(this.tbUnitName_KeyDown);
224 this.tbUnitName.Leave += new System.EventHandler(this.tbUnitName_Leave); 227 //
225 //
226 // unitSize 228 // unitSize
227 // 229 //
230 this.unitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
228 this.unitSize.Location = new System.Drawing.Point(528, 8); 231 this.unitSize.Location = new System.Drawing.Point(528, 8);
229 this.unitSize.Name = "unitSize"; 232 this.unitSize.Name = "unitSize";
230 this.unitSize.Size = new System.Drawing.Size(80, 20); 233 this.unitSize.Size = new System.Drawing.Size(80, 20);
231 this.unitSize.TabIndex = 1; 234 this.unitSize.TabIndex = 1;
232 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; 235 this.unitSize.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
233 this.unitSize.Value = new System.Decimal(new int[] { 236 this.unitSize.Value = new decimal(new int[] {
234 1, 237 1,
235 0, 238 0,
236 0, 239 0,
237 0}); 240 0});
241 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave);
238 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown); 242 this.unitSize.KeyDown += new System.Windows.Forms.KeyEventHandler(this.unitSize_KeyDown);
239 this.unitSize.Leave += new System.EventHandler(this.unitSize_Leave); 243 //
240 //
241 // lblUnitSize 244 // lblUnitSize
242 // 245 //
246 this.lblUnitSize.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
243 this.lblUnitSize.Location = new System.Drawing.Point(424, 8); 247 this.lblUnitSize.Location = new System.Drawing.Point(424, 8);
244 this.lblUnitSize.Name = "lblUnitSize"; 248 this.lblUnitSize.Name = "lblUnitSize";
249 this.lblUnitSize.Size = new System.Drawing.Size(100, 23);
245 this.lblUnitSize.TabIndex = 0; 250 this.lblUnitSize.TabIndex = 0;
246 this.lblUnitSize.Text = "unit size"; 251 this.lblUnitSize.Text = "unit size";
247 this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight; 252 this.lblUnitSize.TextAlign = System.Drawing.ContentAlignment.TopRight;
248 // 253 //
249 // lblRequiredEquip 254 // lblRequiredEquip
250 // 255 //
251 this.lblRequiredEquip.Location = new System.Drawing.Point(8, 128); 256 this.lblRequiredEquip.Location = new System.Drawing.Point(8, 128);
252 this.lblRequiredEquip.Name = "lblRequiredEquip"; 257 this.lblRequiredEquip.Name = "lblRequiredEquip";
253 this.lblRequiredEquip.Size = new System.Drawing.Size(88, 32); 258 this.lblRequiredEquip.Size = new System.Drawing.Size(88, 32);
254 this.lblRequiredEquip.TabIndex = 3; 259 this.lblRequiredEquip.TabIndex = 3;
255 this.lblRequiredEquip.Text = "reqd equipment"; 260 this.lblRequiredEquip.Text = "reqd equipment";
256 this.lblRequiredEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; 261 this.lblRequiredEquip.TextAlign = System.Drawing.ContentAlignment.TopRight;
257 // 262 //
258 // bttnAddWeapon 263 // bttnAddWeapon
259 // 264 //
265 this.bttnAddWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
260 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; 266 this.bttnAddWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
261 this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200); 267 this.bttnAddWeapon.Location = new System.Drawing.Point(520, 200);
262 this.bttnAddWeapon.Name = "bttnAddWeapon"; 268 this.bttnAddWeapon.Name = "bttnAddWeapon";
263 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22); 269 this.bttnAddWeapon.Size = new System.Drawing.Size(88, 22);
264 this.bttnAddWeapon.TabIndex = 4; 270 this.bttnAddWeapon.TabIndex = 4;
265 this.bttnAddWeapon.Text = "add"; 271 this.bttnAddWeapon.Text = "add";
266 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click); 272 this.bttnAddWeapon.Click += new System.EventHandler(this.bttnAddWeapon_Click);
267 // 273 //
268 // bttnRemoveWeapon 274 // bttnRemoveWeapon
269 // 275 //
276 this.bttnRemoveWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
270 this.bttnRemoveWeapon.Enabled = false; 277 this.bttnRemoveWeapon.Enabled = false;
271 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; 278 this.bttnRemoveWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
272 this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248); 279 this.bttnRemoveWeapon.Location = new System.Drawing.Point(520, 248);
273 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon"; 280 this.bttnRemoveWeapon.Name = "bttnRemoveWeapon";
274 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22); 281 this.bttnRemoveWeapon.Size = new System.Drawing.Size(88, 22);
275 this.bttnRemoveWeapon.TabIndex = 5; 282 this.bttnRemoveWeapon.TabIndex = 5;
276 this.bttnRemoveWeapon.Text = "remove"; 283 this.bttnRemoveWeapon.Text = "remove";
277 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click); 284 this.bttnRemoveWeapon.Click += new System.EventHandler(this.bttnRemoveWeapon_Click);
278 // 285 //
279 // reqdList 286 // reqdList
280 // 287 //
288 this.reqdList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
289 | System.Windows.Forms.AnchorStyles.Right)));
281 this.reqdList.Location = new System.Drawing.Point(104, 128); 290 this.reqdList.Location = new System.Drawing.Point(104, 128);
282 this.reqdList.Name = "reqdList"; 291 this.reqdList.Name = "reqdList";
283 this.reqdList.Size = new System.Drawing.Size(408, 69); 292 this.reqdList.Size = new System.Drawing.Size(408, 69);
284 this.reqdList.TabIndex = 6; 293 this.reqdList.TabIndex = 6;
285 this.reqdList.DoubleClick += new System.EventHandler(this.reqdList_DoubleClick); 294 this.reqdList.DoubleClick += new System.EventHandler(this.reqdList_DoubleClick);
286 this.reqdList.SelectedIndexChanged += new System.EventHandler(this.reqdList_SelectedIndexChanged); 295 this.reqdList.SelectedIndexChanged += new System.EventHandler(this.reqdList_SelectedIndexChanged);
287 // 296 //
288 // bttnEditWeapon 297 // bttnEditWeapon
289 // 298 //
299 this.bttnEditWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
290 this.bttnEditWeapon.Enabled = false; 300 this.bttnEditWeapon.Enabled = false;
291 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; 301 this.bttnEditWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
292 this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224); 302 this.bttnEditWeapon.Location = new System.Drawing.Point(520, 224);
293 this.bttnEditWeapon.Name = "bttnEditWeapon"; 303 this.bttnEditWeapon.Name = "bttnEditWeapon";
294 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22); 304 this.bttnEditWeapon.Size = new System.Drawing.Size(88, 22);
295 this.bttnEditWeapon.TabIndex = 7; 305 this.bttnEditWeapon.TabIndex = 7;
296 this.bttnEditWeapon.Text = "edit"; 306 this.bttnEditWeapon.Text = "edit";
297 this.bttnEditWeapon.Click += new System.EventHandler(this.bttnEditWeapon_Click); 307 this.bttnEditWeapon.Click += new System.EventHandler(this.bttnEditWeapon_Click);
298 // 308 //
299 // optList 309 // optList
300 // 310 //
311 this.optList.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
312 | System.Windows.Forms.AnchorStyles.Right)));
301 this.optList.Location = new System.Drawing.Point(104, 200); 313 this.optList.Location = new System.Drawing.Point(104, 200);
302 this.optList.Name = "optList"; 314 this.optList.Name = "optList";
303 this.optList.Size = new System.Drawing.Size(408, 69); 315 this.optList.Size = new System.Drawing.Size(408, 69);
304 this.optList.TabIndex = 9; 316 this.optList.TabIndex = 9;
305 this.optList.DoubleClick += new System.EventHandler(this.optList_DoubleClick); 317 this.optList.DoubleClick += new System.EventHandler(this.optList_DoubleClick);
306 this.optList.SelectedIndexChanged += new System.EventHandler(this.optList_SelectedIndexChanged); 318 this.optList.SelectedIndexChanged += new System.EventHandler(this.optList_SelectedIndexChanged);
307 // 319 //
308 // lblOptionalEquip 320 // lblOptionalEquip
309 // 321 //
310 this.lblOptionalEquip.Location = new System.Drawing.Point(8, 200); 322 this.lblOptionalEquip.Location = new System.Drawing.Point(8, 200);
311 this.lblOptionalEquip.Name = "lblOptionalEquip"; 323 this.lblOptionalEquip.Name = "lblOptionalEquip";
312 this.lblOptionalEquip.Size = new System.Drawing.Size(88, 32); 324 this.lblOptionalEquip.Size = new System.Drawing.Size(88, 32);
313 this.lblOptionalEquip.TabIndex = 8; 325 this.lblOptionalEquip.TabIndex = 8;
314 this.lblOptionalEquip.Text = "opt equipment"; 326 this.lblOptionalEquip.Text = "opt equipment";
315 this.lblOptionalEquip.TextAlign = System.Drawing.ContentAlignment.TopRight; 327 this.lblOptionalEquip.TextAlign = System.Drawing.ContentAlignment.TopRight;
316 // 328 //
317 // bttnReplaceWeapon 329 // bttnReplaceWeapon
318 // 330 //
331 this.bttnReplaceWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
319 this.bttnReplaceWeapon.Enabled = false; 332 this.bttnReplaceWeapon.Enabled = false;
320 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; 333 this.bttnReplaceWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
321 this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128); 334 this.bttnReplaceWeapon.Location = new System.Drawing.Point(520, 128);
322 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon"; 335 this.bttnReplaceWeapon.Name = "bttnReplaceWeapon";
323 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22); 336 this.bttnReplaceWeapon.Size = new System.Drawing.Size(88, 22);
324 this.bttnReplaceWeapon.TabIndex = 10; 337 this.bttnReplaceWeapon.TabIndex = 10;
325 this.bttnReplaceWeapon.Text = "replace"; 338 this.bttnReplaceWeapon.Text = "replace";
326 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click); 339 this.bttnReplaceWeapon.Click += new System.EventHandler(this.bttnReplaceWeapon_Click);
327 // 340 //
328 // bttnEditReqdWeapon 341 // bttnEditReqdWeapon
329 // 342 //
343 this.bttnEditReqdWeapon.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
330 this.bttnEditReqdWeapon.Enabled = false; 344 this.bttnEditReqdWeapon.Enabled = false;
331 this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System; 345 this.bttnEditReqdWeapon.FlatStyle = System.Windows.Forms.FlatStyle.System;
332 this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152); 346 this.bttnEditReqdWeapon.Location = new System.Drawing.Point(520, 152);
333 this.bttnEditReqdWeapon.Name = "bttnEditReqdWeapon"; 347 this.bttnEditReqdWeapon.Name = "bttnEditReqdWeapon";
334 this.bttnEditReqdWeapon.Size = new System.Drawing.Size(88, 22); 348 this.bttnEditReqdWeapon.Size = new System.Drawing.Size(88, 22);
335 this.bttnEditReqdWeapon.TabIndex = 11; 349 this.bttnEditReqdWeapon.TabIndex = 11;
336 this.bttnEditReqdWeapon.Text = "edit"; 350 this.bttnEditReqdWeapon.Text = "edit";
337 this.bttnEditReqdWeapon.Click += new System.EventHandler(this.bttnEditReqdWeapon_Click); 351 this.bttnEditReqdWeapon.Click += new System.EventHandler(this.bttnEditReqdWeapon_Click);
338 // 352 //
339 // FrmUnit 353 // FrmUnit
340 // 354 //
341 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 355 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
342 this.ClientSize = new System.Drawing.Size(616, 314); 356 this.ClientSize = new System.Drawing.Size(616, 314);
343 this.Controls.Add(this.bttnEditReqdWeapon); 357 this.Controls.Add(this.bttnEditReqdWeapon);
344 this.Controls.Add(this.bttnReplaceWeapon); 358 this.Controls.Add(this.bttnReplaceWeapon);
345 this.Controls.Add(this.optList); 359 this.Controls.Add(this.optList);
354 this.Controls.Add(this.tbUnitName); 368 this.Controls.Add(this.tbUnitName);
355 this.Controls.Add(this.statsGrid); 369 this.Controls.Add(this.statsGrid);
356 this.Name = "FrmUnit"; 370 this.Name = "FrmUnit";
357 this.ShowInTaskbar = false; 371 this.ShowInTaskbar = false;
358 this.Text = "FrmUnit"; 372 this.Text = "FrmUnit";
359 ((System.ComponentModel.ISupportInitialize) (this.statsGrid)).EndInit(); 373 ((System.ComponentModel.ISupportInitialize)(this.statsGrid)).EndInit();
360 ((System.ComponentModel.ISupportInitialize) (this.unitSize)).EndInit(); 374 ((System.ComponentModel.ISupportInitialize)(this.unitSize)).EndInit();
361 this.ResumeLayout(false); 375 this.ResumeLayout(false);
376 this.PerformLayout();
362 377
363 } 378 }
364 #endregion 379 #endregion
365 380
366 public Unit Unit 381 public Unit Unit