comparison FrmNewUnitEquipment.cs @ 253:7243e6646926 default tip

Re #427: Resizable equipment dialog * Make equipment dialog resizable
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Apr 2013 16:10:08 +0100
parents c1a3993297b1
children
comparison
equal deleted inserted replaced
252:4d25c42bbe7b 253:7243e6646926
80 this.equipmentAmount = new IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl(); 80 this.equipmentAmount = new IBBoard.WarFoundry.GUI.WinForms.UI.EquipmentAmountControl();
81 this.SuspendLayout(); 81 this.SuspendLayout();
82 // 82 //
83 // lblAmount 83 // lblAmount
84 // 84 //
85 this.lblAmount.Location = new System.Drawing.Point(12, 80); 85 this.lblAmount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
86 this.lblAmount.Location = new System.Drawing.Point(12, 105);
86 this.lblAmount.Name = "lblAmount"; 87 this.lblAmount.Name = "lblAmount";
87 this.lblAmount.Size = new System.Drawing.Size(68, 77); 88 this.lblAmount.Size = new System.Drawing.Size(68, 77);
88 this.lblAmount.TabIndex = 2; 89 this.lblAmount.TabIndex = 2;
89 this.lblAmount.Text = "amount"; 90 this.lblAmount.Text = "amount";
90 this.lblAmount.TextAlign = System.Drawing.ContentAlignment.TopRight; 91 this.lblAmount.TextAlign = System.Drawing.ContentAlignment.TopRight;
91 // 92 //
92 // bttnCancel 93 // bttnCancel
93 // 94 //
95 this.bttnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
94 this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; 96 this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
95 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; 97 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
96 this.bttnCancel.Location = new System.Drawing.Point(158, 162); 98 this.bttnCancel.Location = new System.Drawing.Point(158, 187);
97 this.bttnCancel.Name = "bttnCancel"; 99 this.bttnCancel.Name = "bttnCancel";
98 this.bttnCancel.Size = new System.Drawing.Size(75, 23); 100 this.bttnCancel.Size = new System.Drawing.Size(75, 23);
99 this.bttnCancel.TabIndex = 3; 101 this.bttnCancel.TabIndex = 3;
100 this.bttnCancel.Text = "cancel"; 102 this.bttnCancel.Text = "cancel";
101 this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); 103 this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
102 // 104 //
103 // bttnOkay 105 // bttnOkay
104 // 106 //
107 this.bttnOkay.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
105 this.bttnOkay.Enabled = false; 108 this.bttnOkay.Enabled = false;
106 this.bttnOkay.FlatStyle = System.Windows.Forms.FlatStyle.System; 109 this.bttnOkay.FlatStyle = System.Windows.Forms.FlatStyle.System;
107 this.bttnOkay.Location = new System.Drawing.Point(12, 162); 110 this.bttnOkay.Location = new System.Drawing.Point(12, 187);
108 this.bttnOkay.Name = "bttnOkay"; 111 this.bttnOkay.Name = "bttnOkay";
109 this.bttnOkay.Size = new System.Drawing.Size(75, 23); 112 this.bttnOkay.Size = new System.Drawing.Size(75, 23);
110 this.bttnOkay.TabIndex = 4; 113 this.bttnOkay.TabIndex = 4;
111 this.bttnOkay.Text = "okay"; 114 this.bttnOkay.Text = "okay";
112 this.bttnOkay.Click += new System.EventHandler(this.bttnOkay_Click); 115 this.bttnOkay.Click += new System.EventHandler(this.bttnOkay_Click);
113 // 116 //
114 // lblItem 117 // lblItem
115 // 118 //
119 this.lblItem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
120 | System.Windows.Forms.AnchorStyles.Left)));
116 this.lblItem.Location = new System.Drawing.Point(12, 8); 121 this.lblItem.Location = new System.Drawing.Point(12, 8);
117 this.lblItem.Name = "lblItem"; 122 this.lblItem.Name = "lblItem";
118 this.lblItem.Size = new System.Drawing.Size(68, 69); 123 this.lblItem.Size = new System.Drawing.Size(68, 69);
119 this.lblItem.TabIndex = 6; 124 this.lblItem.TabIndex = 6;
120 this.lblItem.Text = "item"; 125 this.lblItem.Text = "item";
121 this.lblItem.TextAlign = System.Drawing.ContentAlignment.TopRight; 126 this.lblItem.TextAlign = System.Drawing.ContentAlignment.TopRight;
122 // 127 //
123 // listItems 128 // listItems
124 // 129 //
130 this.listItems.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
131 | System.Windows.Forms.AnchorStyles.Left)
132 | System.Windows.Forms.AnchorStyles.Right)));
125 this.listItems.Location = new System.Drawing.Point(88, 8); 133 this.listItems.Location = new System.Drawing.Point(88, 8);
126 this.listItems.Name = "listItems"; 134 this.listItems.Name = "listItems";
127 this.listItems.Size = new System.Drawing.Size(145, 69); 135 this.listItems.Size = new System.Drawing.Size(145, 82);
128 this.listItems.TabIndex = 7; 136 this.listItems.TabIndex = 7;
129 this.listItems.SelectedIndexChanged += new System.EventHandler(this.listItems_SelectedIndexChanged); 137 this.listItems.SelectedIndexChanged += new System.EventHandler(this.listItems_SelectedIndexChanged);
130 // 138 //
131 // equipmentAmount 139 // equipmentAmount
132 // 140 //
133 this.equipmentAmount.Location = new System.Drawing.Point(88, 80); 141 this.equipmentAmount.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
142 | System.Windows.Forms.AnchorStyles.Right)));
143 this.equipmentAmount.Location = new System.Drawing.Point(88, 105);
134 this.equipmentAmount.Name = "equipmentAmount"; 144 this.equipmentAmount.Name = "equipmentAmount";
135 this.equipmentAmount.Size = new System.Drawing.Size(155, 77); 145 this.equipmentAmount.Size = new System.Drawing.Size(155, 77);
136 this.equipmentAmount.TabIndex = 8; 146 this.equipmentAmount.TabIndex = 8;
137 this.equipmentAmount.ValueChanged += new System.EventHandler(this.equipmentAmount_ValueChanged); 147 this.equipmentAmount.ValueChanged += new System.EventHandler(this.equipmentAmount_ValueChanged);
138 // 148 //
139 // FrmNewUnitEquipment 149 // FrmNewUnitEquipment
140 // 150 //
141 this.AcceptButton = this.bttnOkay; 151 this.AcceptButton = this.bttnOkay;
142 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 152 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
143 this.CancelButton = this.bttnCancel; 153 this.CancelButton = this.bttnCancel;
144 this.ClientSize = new System.Drawing.Size(245, 190); 154 this.ClientSize = new System.Drawing.Size(245, 216);
145 this.ControlBox = false; 155 this.ControlBox = false;
146 this.Controls.Add(this.equipmentAmount); 156 this.Controls.Add(this.equipmentAmount);
147 this.Controls.Add(this.listItems); 157 this.Controls.Add(this.listItems);
148 this.Controls.Add(this.lblItem); 158 this.Controls.Add(this.lblItem);
149 this.Controls.Add(this.bttnOkay); 159 this.Controls.Add(this.bttnOkay);
150 this.Controls.Add(this.bttnCancel); 160 this.Controls.Add(this.bttnCancel);
151 this.Controls.Add(this.lblAmount); 161 this.Controls.Add(this.lblAmount);
152 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 162 this.MinimumSize = new System.Drawing.Size(253, 224);
153 this.Name = "FrmNewUnitEquipment"; 163 this.Name = "FrmNewUnitEquipment";
154 this.ShowInTaskbar = false; 164 this.ShowInTaskbar = false;
155 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 165 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
156 this.Text = "FrmEditUnitEquipment"; 166 this.Text = "FrmEditUnitEquipment";
157 this.ResumeLayout(false); 167 this.ResumeLayout(false);