Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
annotate FrmNewUnitFromTree.Designer.cs @ 210:694f23814ec2
Re #354: Single-button Add Unit
* Make the form translatable
* Update FrmArmyTree so it doesn't look out of place (ContextMenuStrip and update the icons)
* Add "change selection on right-click" code to solve calculation issues
* Hide categories that don't have entries (assume they're not relevant to that race)
Also:
* Clean up code and replace space indents with tabs
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 20 Aug 2011 20:58:16 +0100 |
parents | a11faa64c333 |
children |
rev | line source |
---|---|
207 | 1 namespace IBBoard.WarFoundry.GUI.WinForms |
2 { | |
3 partial class FrmNewUnitFromTree | |
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 { | |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
31 this.components = new System.ComponentModel.Container(); |
207 | 32 this.unitTypeTree = new System.Windows.Forms.TreeView(); |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
33 this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
34 this.addUnitMenuItem = new IBBoard.Windows.Forms.IBBToolStripMenuItem(); |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
35 this.contextMenu.SuspendLayout(); |
207 | 36 this.SuspendLayout(); |
37 // | |
38 // unitTypeTree | |
39 // | |
40 this.unitTypeTree.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |
41 | System.Windows.Forms.AnchorStyles.Left) | |
42 | System.Windows.Forms.AnchorStyles.Right))); | |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
43 this.unitTypeTree.ContextMenuStrip = this.contextMenu; |
207 | 44 this.unitTypeTree.Location = new System.Drawing.Point(0, 0); |
45 this.unitTypeTree.Name = "unitTypeTree"; | |
208
19a88383dfa7
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
207
diff
changeset
|
46 this.unitTypeTree.Size = new System.Drawing.Size(199, 287); |
207 | 47 this.unitTypeTree.TabIndex = 0; |
208
19a88383dfa7
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
207
diff
changeset
|
48 this.unitTypeTree.DoubleClick += new System.EventHandler(this.unitTypeTree_DoubleClick); |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
49 this.unitTypeTree.MouseDown += new System.Windows.Forms.MouseEventHandler(this.unitTypeTree_MouseDown); |
207 | 50 // |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
51 // contextMenu |
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
52 // |
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
53 this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
54 this.addUnitMenuItem}); |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
55 this.contextMenu.Name = "contextMenu"; |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
56 this.contextMenu.Size = new System.Drawing.Size(163, 48); |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
57 this.contextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenu_Opening); |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
58 // |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
59 // addUnitMenuItem |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
60 // |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
61 this.addUnitMenuItem.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.list_add; |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
62 this.addUnitMenuItem.Name = "addUnitMenuItem"; |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
63 this.addUnitMenuItem.Size = new System.Drawing.Size(162, 22); |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
64 this.addUnitMenuItem.Text = "add unit of type"; |
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
65 this.addUnitMenuItem.Click += new System.EventHandler(this.AddUnitClicked); |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
66 // |
207 | 67 // FrmNewUnitFromTree |
68 // | |
69 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); | |
70 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | |
208
19a88383dfa7
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
207
diff
changeset
|
71 this.ClientSize = new System.Drawing.Size(199, 286); |
19a88383dfa7
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
207
diff
changeset
|
72 this.ControlBox = false; |
207 | 73 this.Controls.Add(this.unitTypeTree); |
208
19a88383dfa7
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
207
diff
changeset
|
74 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; |
207 | 75 this.Name = "FrmNewUnitFromTree"; |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
76 this.Text = "available unit types"; |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
77 this.contextMenu.ResumeLayout(false); |
207 | 78 this.ResumeLayout(false); |
79 | |
80 } | |
81 | |
82 #endregion | |
83 | |
84 private System.Windows.Forms.TreeView unitTypeTree; | |
209
a11faa64c333
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
208
diff
changeset
|
85 private System.Windows.Forms.ContextMenuStrip contextMenu; |
210
694f23814ec2
Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
209
diff
changeset
|
86 private Windows.Forms.IBBToolStripMenuItem addUnitMenuItem; |
207 | 87 } |
88 } |