# HG changeset patch # User IBBoard # Date 1249156628 0 # Node ID f72a3da5059b526fe9ee32080de99241331635b7 # Parent fcfe7e12616ac9f0362acee201661351f55244c2 Re #88: Complete initial WinForms UI * Make double-click on system selection list pick that item diff -r fcfe7e12616a -r f72a3da5059b FrmSelectSystem.cs --- a/FrmSelectSystem.cs Sat Aug 01 16:07:15 2009 +0000 +++ b/FrmSelectSystem.cs Sat Aug 01 19:57:08 2009 +0000 @@ -69,70 +69,71 @@ /// the contents of this method with the code editor. /// private void InitializeComponent() - { - this.lstSystems = new System.Windows.Forms.ListBox(); - this.bttnSelectSystem = new IBBoard.Windows.Forms.IBBButton(); - this.lblSystemList = new IBBoard.Windows.Forms.IBBLabel(); - this.bttnCancel = new IBBoard.Windows.Forms.IBBButton(); - this.SuspendLayout(); - // - // lstSystems - // - this.lstSystems.Location = new System.Drawing.Point(80, 8); - this.lstSystems.Name = "lstSystems"; - this.lstSystems.Size = new System.Drawing.Size(216, 95); - this.lstSystems.TabIndex = 0; - this.lstSystems.SelectedIndexChanged += new System.EventHandler(this.lstSystems_SelectedIndexChanged); - // - // bttnSelectSystem - // - this.bttnSelectSystem.Enabled = false; - this.bttnSelectSystem.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.bttnSelectSystem.Location = new System.Drawing.Point(192, 112); - this.bttnSelectSystem.Name = "bttnSelectSystem"; - this.bttnSelectSystem.Size = new System.Drawing.Size(104, 24); - this.bttnSelectSystem.TabIndex = 1; - this.bttnSelectSystem.Text = "Select system"; - this.bttnSelectSystem.Click += new System.EventHandler(this.bttnSelectSystem_Click); - // - // lblSystemList - // - this.lblSystemList.Location = new System.Drawing.Point(0, 8); - this.lblSystemList.Name = "lblSystemList"; - this.lblSystemList.Size = new System.Drawing.Size(80, 80); - this.lblSystemList.TabIndex = 2; - this.lblSystemList.Text = "system list"; - this.lblSystemList.TextAlign = System.Drawing.ContentAlignment.TopRight; - // - // 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, 112); - this.bttnCancel.Name = "bttnCancel"; - this.bttnCancel.Size = new System.Drawing.Size(80, 24); - this.bttnCancel.TabIndex = 3; - this.bttnCancel.Text = "Cancel"; - this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); - // - // FrmSelectSystem - // - this.AcceptButton = this.bttnSelectSystem; - this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.CancelButton = this.bttnCancel; - this.ClientSize = new System.Drawing.Size(306, 142); - this.ControlBox = false; - this.Controls.Add(this.bttnCancel); - this.Controls.Add(this.lblSystemList); - this.Controls.Add(this.bttnSelectSystem); - this.Controls.Add(this.lstSystems); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Name = "FrmSelectSystem"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "FrmSelectSystem"; - this.ResumeLayout(false); - + { + this.lstSystems = new System.Windows.Forms.ListBox(); + this.bttnSelectSystem = new IBBoard.Windows.Forms.IBBButton(); + this.lblSystemList = new IBBoard.Windows.Forms.IBBLabel(); + this.bttnCancel = new IBBoard.Windows.Forms.IBBButton(); + this.SuspendLayout(); + // + // lstSystems + // + this.lstSystems.Location = new System.Drawing.Point(80, 8); + this.lstSystems.Name = "lstSystems"; + this.lstSystems.Size = new System.Drawing.Size(216, 95); + this.lstSystems.TabIndex = 0; + this.lstSystems.DoubleClick += new System.EventHandler(this.lstSystems_DoubleClick); + this.lstSystems.SelectedIndexChanged += new System.EventHandler(this.lstSystems_SelectedIndexChanged); + // + // bttnSelectSystem + // + this.bttnSelectSystem.Enabled = false; + this.bttnSelectSystem.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.bttnSelectSystem.Location = new System.Drawing.Point(192, 112); + this.bttnSelectSystem.Name = "bttnSelectSystem"; + this.bttnSelectSystem.Size = new System.Drawing.Size(104, 24); + this.bttnSelectSystem.TabIndex = 1; + this.bttnSelectSystem.Text = "Select system"; + this.bttnSelectSystem.Click += new System.EventHandler(this.bttnSelectSystem_Click); + // + // lblSystemList + // + this.lblSystemList.Location = new System.Drawing.Point(0, 8); + this.lblSystemList.Name = "lblSystemList"; + this.lblSystemList.Size = new System.Drawing.Size(80, 80); + this.lblSystemList.TabIndex = 2; + this.lblSystemList.Text = "system list"; + this.lblSystemList.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // 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, 112); + this.bttnCancel.Name = "bttnCancel"; + this.bttnCancel.Size = new System.Drawing.Size(80, 24); + this.bttnCancel.TabIndex = 3; + this.bttnCancel.Text = "Cancel"; + this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); + // + // FrmSelectSystem + // + this.AcceptButton = this.bttnSelectSystem; + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.CancelButton = this.bttnCancel; + this.ClientSize = new System.Drawing.Size(306, 142); + this.ControlBox = false; + this.Controls.Add(this.bttnCancel); + this.Controls.Add(this.lblSystemList); + this.Controls.Add(this.bttnSelectSystem); + this.Controls.Add(this.lstSystems); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Name = "FrmSelectSystem"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "FrmSelectSystem"; + this.ResumeLayout(false); + } #endregion @@ -157,6 +158,11 @@ public GameSystem GameSystem { get { return selectedSystem; } + } + + private void lstSystems_DoubleClick(object sender, EventArgs e) + { + bttnSelectSystem_Click(null, null); } } } diff -r fcfe7e12616a -r f72a3da5059b FrmSelectSystem.resx --- a/FrmSelectSystem.resx Sat Aug 01 16:07:15 2009 +0000 +++ b/FrmSelectSystem.resx Sat Aug 01 19:57:08 2009 +0000 @@ -3,7 +3,7 @@ + + + + + + + + + + + + + + + + + + - + + @@ -89,78 +109,12 @@ text/microsoft-resx - 1.3 + 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Private - - - False - - - Private - - - False - - - Private - - - Private - - - False - - - Private - - - Private - - - False - - - Private - - - Private - - - False - - - (Default) - - - False - - - FrmSelectSystem - - - False - - - 8, 8 - - - True - - - 80 - - - True - - - Private - \ No newline at end of file