comparison 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
comparison
equal deleted inserted replaced
146:5d9d4c75305f 147:1bcd7ea857c4
69 /// the contents of this method with the code editor. 69 /// the contents of this method with the code editor.
70 /// </summary> 70 /// </summary>
71 private void InitializeComponent() 71 private void InitializeComponent()
72 { 72 {
73 this.components = new System.ComponentModel.Container(); 73 this.components = new System.ComponentModel.Container();
74 System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmNewUnit)); 74 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmNewUnit));
75 this.lstUnits = new System.Windows.Forms.ListBox(); 75 this.lstUnits = new System.Windows.Forms.ListBox();
76 this.bttnCancel = new IBBoard.Windows.Forms.IBBButton(); 76 this.bttnCancel = new IBBoard.Windows.Forms.IBBButton();
77 this.lblUnitList = new IBBoard.Windows.Forms.IBBLabel(); 77 this.lblUnitList = new IBBoard.Windows.Forms.IBBLabel();
78 this.bttnSelectUnit = new IBBoard.Windows.Forms.IBBButton(); 78 this.bttnSelectUnit = new IBBoard.Windows.Forms.IBBButton();
79 this.lblNewUnitWarning = new System.Windows.Forms.Label(); 79 this.lblNewUnitWarning = new System.Windows.Forms.Label();
85 // 85 //
86 this.lstUnits.Location = new System.Drawing.Point(88, 8); 86 this.lstUnits.Location = new System.Drawing.Point(88, 8);
87 this.lstUnits.Name = "lstUnits"; 87 this.lstUnits.Name = "lstUnits";
88 this.lstUnits.Size = new System.Drawing.Size(272, 121); 88 this.lstUnits.Size = new System.Drawing.Size(272, 121);
89 this.lstUnits.TabIndex = 7; 89 this.lstUnits.TabIndex = 7;
90 this.lstUnits.SelectedIndexChanged += new System.EventHandler(this.lstUnits_SelectedIndexChanged);
91 this.lstUnits.DoubleClick += new System.EventHandler(this.lstUnits_DoubleClick);
90 this.lstUnits.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstUnits_MouseDown); 92 this.lstUnits.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lstUnits_MouseDown);
91 this.lstUnits.DoubleClick += new System.EventHandler(this.lstUnits_DoubleClick);
92 this.lstUnits.SelectedIndexChanged += new System.EventHandler(this.lstUnits_SelectedIndexChanged);
93 // 93 //
94 // bttnCancel 94 // bttnCancel
95 // 95 //
96 this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; 96 this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
97 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; 97 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
134 this.lblNewUnitWarning.TextAlign = System.Drawing.ContentAlignment.TopRight; 134 this.lblNewUnitWarning.TextAlign = System.Drawing.ContentAlignment.TopRight;
135 this.lblNewUnitWarning.Visible = false; 135 this.lblNewUnitWarning.Visible = false;
136 // 136 //
137 // imageList 137 // imageList
138 // 138 //
139 this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
140 this.imageList.ImageSize = new System.Drawing.Size(32, 32);
141 this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); 139 this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
142 this.imageList.TransparentColor = System.Drawing.Color.Transparent; 140 this.imageList.TransparentColor = System.Drawing.Color.Transparent;
141 this.imageList.Images.SetKeyName(0, "");
143 // 142 //
144 // lblWarningIcon 143 // lblWarningIcon
145 // 144 //
146 this.lblWarningIcon.ImageIndex = 0; 145 this.lblWarningIcon.Image = ((System.Drawing.Image)(resources.GetObject("lblWarningIcon.Image")));
147 this.lblWarningIcon.ImageList = this.imageList;
148 this.lblWarningIcon.Location = new System.Drawing.Point(8, 136); 146 this.lblWarningIcon.Location = new System.Drawing.Point(8, 136);
149 this.lblWarningIcon.Name = "lblWarningIcon"; 147 this.lblWarningIcon.Name = "lblWarningIcon";
150 this.lblWarningIcon.Size = new System.Drawing.Size(40, 32); 148 this.lblWarningIcon.Size = new System.Drawing.Size(40, 32);
151 this.lblWarningIcon.TabIndex = 10; 149 this.lblWarningIcon.TabIndex = 10;
152 this.lblWarningIcon.Visible = false; 150 this.lblWarningIcon.Visible = false;