diff FrmNewUnit.cs @ 147:1bcd7ea857c4

* Switch to using a single icon for the FrmNewUnit warning icon to work around Mono vs .Net2 SP2 serialisation bug (https://bugzilla.novell.com/show_bug.cgi?id=360429) * Bump version to v0.1b8 for release no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Sun, 18 Apr 2010 15:11:02 +0000
parents 1576f669b3eb
children 137ec6d45280
line wrap: on
line diff
--- a/FrmNewUnit.cs	Sun Apr 18 14:25:32 2010 +0000
+++ b/FrmNewUnit.cs	Sun Apr 18 15:11:02 2010 +0000
@@ -69,110 +69,108 @@
 		/// the contents of this method with the code editor.
 		/// </summary>
 		private void InitializeComponent()
-		{
-			this.components = new System.ComponentModel.Container();
-			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmNewUnit));
-			this.lstUnits = new System.Windows.Forms.ListBox();
-			this.bttnCancel = new IBBoard.Windows.Forms.IBBButton();
-			this.lblUnitList = new IBBoard.Windows.Forms.IBBLabel();
-			this.bttnSelectUnit = new IBBoard.Windows.Forms.IBBButton();
-			this.lblNewUnitWarning = new System.Windows.Forms.Label();
-			this.imageList = new System.Windows.Forms.ImageList(this.components);
-			this.lblWarningIcon = new System.Windows.Forms.Label();
-			this.SuspendLayout();
-			// 
-			// lstUnits
-			// 
-			this.lstUnits.Location = new System.Drawing.Point(88, 8);
-			this.lstUnits.Name = "lstUnits";
-			this.lstUnits.Size = new System.Drawing.Size(272, 121);
-			this.lstUnits.TabIndex = 7;
-			this.lstUnits.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstUnits_MouseDown);
-			this.lstUnits.DoubleClick += new System.EventHandler(this.lstUnits_DoubleClick);
-			this.lstUnits.SelectedIndexChanged += new System.EventHandler(this.lstUnits_SelectedIndexChanged);
-			// 
-			// bttnCancel
-			// 
-			this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
-			this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
-			this.bttnCancel.Location = new System.Drawing.Point(8, 168);
-			this.bttnCancel.Name = "bttnCancel";
-			this.bttnCancel.Size = new System.Drawing.Size(80, 24);
-			this.bttnCancel.TabIndex = 6;
-			this.bttnCancel.Text = "Cancel";
-			this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
-			// 
-			// lblUnitList
-			// 
-			this.lblUnitList.Location = new System.Drawing.Point(0, 8);
-			this.lblUnitList.Name = "lblUnitList";
-			this.lblUnitList.Size = new System.Drawing.Size(88, 80);
-			this.lblUnitList.TabIndex = 5;
-			this.lblUnitList.Text = "unit list";
-			this.lblUnitList.TextAlign = System.Drawing.ContentAlignment.TopRight;
-			// 
-			// bttnSelectUnit
-			// 
-			this.bttnSelectUnit.Enabled = false;
-			this.bttnSelectUnit.FlatStyle = System.Windows.Forms.FlatStyle.System;
-			this.bttnSelectUnit.Location = new System.Drawing.Point(256, 168);
-			this.bttnSelectUnit.Name = "bttnSelectUnit";
-			this.bttnSelectUnit.Size = new System.Drawing.Size(104, 24);
-			this.bttnSelectUnit.TabIndex = 4;
-			this.bttnSelectUnit.Text = "create unit";
-			this.bttnSelectUnit.Click += new System.EventHandler(this.bttnSelectUnit_Click);
-			// 
-			// lblNewUnitWarning
-			// 
-			this.lblNewUnitWarning.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
-			this.lblNewUnitWarning.ImageList = this.imageList;
-			this.lblNewUnitWarning.Location = new System.Drawing.Point(48, 136);
-			this.lblNewUnitWarning.Name = "lblNewUnitWarning";
-			this.lblNewUnitWarning.Size = new System.Drawing.Size(312, 32);
-			this.lblNewUnitWarning.TabIndex = 9;
-			this.lblNewUnitWarning.Text = "label1";
-			this.lblNewUnitWarning.TextAlign = System.Drawing.ContentAlignment.TopRight;
-			this.lblNewUnitWarning.Visible = false;
-			// 
-			// imageList
-			// 
-			this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
-			this.imageList.ImageSize = new System.Drawing.Size(32, 32);
-			this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
-			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
-			// 
-			// lblWarningIcon
-			// 
-			this.lblWarningIcon.ImageIndex = 0;
-			this.lblWarningIcon.ImageList = this.imageList;
-			this.lblWarningIcon.Location = new System.Drawing.Point(8, 136);
-			this.lblWarningIcon.Name = "lblWarningIcon";
-			this.lblWarningIcon.Size = new System.Drawing.Size(40, 32);
-			this.lblWarningIcon.TabIndex = 10;
-			this.lblWarningIcon.Visible = false;
-			// 
-			// FrmNewUnit
-			// 
-			this.AcceptButton = this.bttnSelectUnit;
-			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
-			this.CancelButton = this.bttnCancel;
-			this.ClientSize = new System.Drawing.Size(370, 196);
-			this.Controls.Add(this.lblWarningIcon);
-			this.Controls.Add(this.lblNewUnitWarning);
-			this.Controls.Add(this.bttnCancel);
-			this.Controls.Add(this.lblUnitList);
-			this.Controls.Add(this.bttnSelectUnit);
-			this.Controls.Add(this.lstUnits);
-			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
-			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-			this.MaximizeBox = false;
-			this.MinimizeBox = false;
-			this.Name = "FrmNewUnit";
-			this.ShowInTaskbar = false;
-			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
-			this.Text = "FrmNewUni";
-			this.ResumeLayout(false);
-
+		{
+			this.components = new System.ComponentModel.Container();
+			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmNewUnit));
+			this.lstUnits = new System.Windows.Forms.ListBox();
+			this.bttnCancel = new IBBoard.Windows.Forms.IBBButton();
+			this.lblUnitList = new IBBoard.Windows.Forms.IBBLabel();
+			this.bttnSelectUnit = new IBBoard.Windows.Forms.IBBButton();
+			this.lblNewUnitWarning = new System.Windows.Forms.Label();
+			this.imageList = new System.Windows.Forms.ImageList(this.components);
+			this.lblWarningIcon = new System.Windows.Forms.Label();
+			this.SuspendLayout();
+			// 
+			// lstUnits
+			// 
+			this.lstUnits.Location = new System.Drawing.Point(88, 8);
+			this.lstUnits.Name = "lstUnits";
+			this.lstUnits.Size = new System.Drawing.Size(272, 121);
+			this.lstUnits.TabIndex = 7;
+			this.lstUnits.SelectedIndexChanged += new System.EventHandler(this.lstUnits_SelectedIndexChanged);
+			this.lstUnits.DoubleClick += new System.EventHandler(this.lstUnits_DoubleClick);
+			this.lstUnits.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstUnits_MouseDown);
+			// 
+			// bttnCancel
+			// 
+			this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+			this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
+			this.bttnCancel.Location = new System.Drawing.Point(8, 168);
+			this.bttnCancel.Name = "bttnCancel";
+			this.bttnCancel.Size = new System.Drawing.Size(80, 24);
+			this.bttnCancel.TabIndex = 6;
+			this.bttnCancel.Text = "Cancel";
+			this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
+			// 
+			// lblUnitList
+			// 
+			this.lblUnitList.Location = new System.Drawing.Point(0, 8);
+			this.lblUnitList.Name = "lblUnitList";
+			this.lblUnitList.Size = new System.Drawing.Size(88, 80);
+			this.lblUnitList.TabIndex = 5;
+			this.lblUnitList.Text = "unit list";
+			this.lblUnitList.TextAlign = System.Drawing.ContentAlignment.TopRight;
+			// 
+			// bttnSelectUnit
+			// 
+			this.bttnSelectUnit.Enabled = false;
+			this.bttnSelectUnit.FlatStyle = System.Windows.Forms.FlatStyle.System;
+			this.bttnSelectUnit.Location = new System.Drawing.Point(256, 168);
+			this.bttnSelectUnit.Name = "bttnSelectUnit";
+			this.bttnSelectUnit.Size = new System.Drawing.Size(104, 24);
+			this.bttnSelectUnit.TabIndex = 4;
+			this.bttnSelectUnit.Text = "create unit";
+			this.bttnSelectUnit.Click += new System.EventHandler(this.bttnSelectUnit_Click);
+			// 
+			// lblNewUnitWarning
+			// 
+			this.lblNewUnitWarning.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
+			this.lblNewUnitWarning.ImageList = this.imageList;
+			this.lblNewUnitWarning.Location = new System.Drawing.Point(48, 136);
+			this.lblNewUnitWarning.Name = "lblNewUnitWarning";
+			this.lblNewUnitWarning.Size = new System.Drawing.Size(312, 32);
+			this.lblNewUnitWarning.TabIndex = 9;
+			this.lblNewUnitWarning.Text = "label1";
+			this.lblNewUnitWarning.TextAlign = System.Drawing.ContentAlignment.TopRight;
+			this.lblNewUnitWarning.Visible = false;
+			// 
+			// imageList
+			// 
+			this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
+			this.imageList.TransparentColor = System.Drawing.Color.Transparent;
+			this.imageList.Images.SetKeyName(0, "");
+			// 
+			// lblWarningIcon
+			// 
+			this.lblWarningIcon.Image = ((System.Drawing.Image)(resources.GetObject("lblWarningIcon.Image")));
+			this.lblWarningIcon.Location = new System.Drawing.Point(8, 136);
+			this.lblWarningIcon.Name = "lblWarningIcon";
+			this.lblWarningIcon.Size = new System.Drawing.Size(40, 32);
+			this.lblWarningIcon.TabIndex = 10;
+			this.lblWarningIcon.Visible = false;
+			// 
+			// FrmNewUnit
+			// 
+			this.AcceptButton = this.bttnSelectUnit;
+			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+			this.CancelButton = this.bttnCancel;
+			this.ClientSize = new System.Drawing.Size(370, 196);
+			this.Controls.Add(this.lblWarningIcon);
+			this.Controls.Add(this.lblNewUnitWarning);
+			this.Controls.Add(this.bttnCancel);
+			this.Controls.Add(this.lblUnitList);
+			this.Controls.Add(this.bttnSelectUnit);
+			this.Controls.Add(this.lstUnits);
+			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+			this.MaximizeBox = false;
+			this.MinimizeBox = false;
+			this.Name = "FrmNewUnit";
+			this.ShowInTaskbar = false;
+			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+			this.Text = "FrmNewUni";
+			this.ResumeLayout(false);
+
 		}
 		#endregion