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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 namespace IBBoard.WarFoundry.GUI.WinForms
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 {
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 partial class FrmNewUnitFromTree
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 {
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 /// <summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 /// Required designer variable.
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 /// </summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 private System.ComponentModel.IContainer components = null;
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 /// <summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 /// Clean up any resources being used.
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 /// </summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 protected override void Dispose(bool disposing)
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 if (disposing && (components != null))
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 {
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 components.Dispose();
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 }
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 base.Dispose(disposing);
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 }
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 #region Windows Form Designer generated code
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 /// <summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 /// Required method for Designer support - do not modify
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 /// the contents of this method with the code editor.
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 /// </summary>
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 private void InitializeComponent()
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 this.SuspendLayout();
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 //
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 // unitTypeTree
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 //
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 this.unitTypeTree.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 | System.Windows.Forms.AnchorStyles.Left)
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 this.unitTypeTree.Location = new System.Drawing.Point(0, 0);
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 // FrmNewUnitFromTree
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 //
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 this.ResumeLayout(false);
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 }
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 #endregion
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 }
53d79e1be712 Re #354: Single-button Add Unit
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 }