annotate FrmSelectSystem.cs @ 30:eb470dc9aaa6

Re #112: WinForms UI won't build on other machines * Fix problems with reference to IBBoard project going up two levels * Problems with output path are still out-standing because the available macros are limited and $(HOMEDRIVE)$(HOMEPATH) isn't recognised and interpreted Also: * Remove reference to removed log4net.xml file and properties
author IBBoard <dev@ibboard.co.uk>
date Mon, 03 Aug 2009 20:07:23 +0000
parents f72a3da5059b
children 67c283ea77a7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
1 // This file (FrmSelectSystem.cs) is a part of the IBBoard.WarFoundry.GUI.WinForms project and is copyright 2009 IBBoard.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
2 //
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
3 // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
4
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
5 using System;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
6 using System.IO;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
7 using System.Drawing;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
8 using System.Collections;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
9 using System.ComponentModel;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
10 using System.Windows.Forms;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
11 using IBBoard;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
12 using IBBoard.Lang;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
13 using IBBoard.WarFoundry.API;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
14 using IBBoard.Windows.Forms;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
15 using IBBoard.WarFoundry.API.Objects;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
16 using IBBoard.Windows.Forms.I18N;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
17
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
18 namespace IBBoard.WarFoundry
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
19 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
20 /// <summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
21 /// Summary description for FrmSelectSystem.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
22 /// </summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
23 public class FrmSelectSystem : IBBoard.Windows.Forms.IBBForm
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
24 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
25 private System.Windows.Forms.ListBox lstSystems;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
26 private IBBoard.Windows.Forms.IBBLabel lblSystemList;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
27 /// <summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
28 /// Required designer variable.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
29 /// </summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
30 private System.ComponentModel.Container components = null;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
31 private IBBoard.Windows.Forms.IBBButton bttnCancel;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
32 private IBBoard.Windows.Forms.IBBButton bttnSelectSystem;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
33 private GameSystem selectedSystem;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
34
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
35
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
36 public FrmSelectSystem()
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
37 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
38 //
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
39 // Required for Windows Form Designer support
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
40 //
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
41 InitializeComponent();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
42
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
43 ControlTranslator.TranslateControl(this);
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
44
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
45 lstSystems.Items.Clear();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
46 GameSystem[] systems = WarFoundryLoader.GetDefault().GetGameSystems();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
47 lstSystems.DataSource = systems;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
48 lstSystems.DisplayMember = "Name";
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
49 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
50
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
51 /// <summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
52 /// Clean up any resources being used.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
53 /// </summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
54 protected override void Dispose( bool disposing )
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
55 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
56 if( disposing )
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
57 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
58 if(components != null)
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
59 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
60 components.Dispose();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
61 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
62 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
63 base.Dispose( disposing );
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
64 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
65
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
66 #region Windows Form Designer generated code
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
67 /// <summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
68 /// Required method for Designer support - do not modify
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
69 /// the contents of this method with the code editor.
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
70 /// </summary>
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
71 private void InitializeComponent()
29
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
72 {
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
73 this.lstSystems = new System.Windows.Forms.ListBox();
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
74 this.bttnSelectSystem = new IBBoard.Windows.Forms.IBBButton();
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
75 this.lblSystemList = new IBBoard.Windows.Forms.IBBLabel();
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
76 this.bttnCancel = new IBBoard.Windows.Forms.IBBButton();
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
77 this.SuspendLayout();
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
78 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
79 // lstSystems
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
80 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
81 this.lstSystems.Location = new System.Drawing.Point(80, 8);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
82 this.lstSystems.Name = "lstSystems";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
83 this.lstSystems.Size = new System.Drawing.Size(216, 95);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
84 this.lstSystems.TabIndex = 0;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
85 this.lstSystems.DoubleClick += new System.EventHandler(this.lstSystems_DoubleClick);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
86 this.lstSystems.SelectedIndexChanged += new System.EventHandler(this.lstSystems_SelectedIndexChanged);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
87 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
88 // bttnSelectSystem
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
89 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
90 this.bttnSelectSystem.Enabled = false;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
91 this.bttnSelectSystem.FlatStyle = System.Windows.Forms.FlatStyle.System;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
92 this.bttnSelectSystem.Location = new System.Drawing.Point(192, 112);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
93 this.bttnSelectSystem.Name = "bttnSelectSystem";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
94 this.bttnSelectSystem.Size = new System.Drawing.Size(104, 24);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
95 this.bttnSelectSystem.TabIndex = 1;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
96 this.bttnSelectSystem.Text = "Select system";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
97 this.bttnSelectSystem.Click += new System.EventHandler(this.bttnSelectSystem_Click);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
98 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
99 // lblSystemList
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
100 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
101 this.lblSystemList.Location = new System.Drawing.Point(0, 8);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
102 this.lblSystemList.Name = "lblSystemList";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
103 this.lblSystemList.Size = new System.Drawing.Size(80, 80);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
104 this.lblSystemList.TabIndex = 2;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
105 this.lblSystemList.Text = "system list";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
106 this.lblSystemList.TextAlign = System.Drawing.ContentAlignment.TopRight;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
107 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
108 // bttnCancel
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
109 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
110 this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
111 this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
112 this.bttnCancel.Location = new System.Drawing.Point(8, 112);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
113 this.bttnCancel.Name = "bttnCancel";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
114 this.bttnCancel.Size = new System.Drawing.Size(80, 24);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
115 this.bttnCancel.TabIndex = 3;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
116 this.bttnCancel.Text = "Cancel";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
117 this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
118 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
119 // FrmSelectSystem
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
120 //
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
121 this.AcceptButton = this.bttnSelectSystem;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
122 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
123 this.CancelButton = this.bttnCancel;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
124 this.ClientSize = new System.Drawing.Size(306, 142);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
125 this.ControlBox = false;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
126 this.Controls.Add(this.bttnCancel);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
127 this.Controls.Add(this.lblSystemList);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
128 this.Controls.Add(this.bttnSelectSystem);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
129 this.Controls.Add(this.lstSystems);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
130 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
131 this.Name = "FrmSelectSystem";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
132 this.ShowInTaskbar = false;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
133 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
134 this.Text = "FrmSelectSystem";
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
135 this.ResumeLayout(false);
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
136
24
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
137 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
138 #endregion
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
139
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
140 private void lstSystems_SelectedIndexChanged(object sender, System.EventArgs e)
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
141 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
142 bttnSelectSystem.Enabled = (lstSystems.SelectedIndex>-1);
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
143 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
144
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
145 private void bttnSelectSystem_Click(object sender, System.EventArgs e)
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
146 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
147 selectedSystem = (GameSystem) lstSystems.SelectedItem;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
148 this.DialogResult = DialogResult.OK;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
149 this.Close();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
150 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
151
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
152 private void bttnCancel_Click(object sender, System.EventArgs e)
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
153 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
154 this.DialogResult = DialogResult.Cancel;
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
155 this.Close();
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
156 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
157
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
158 public GameSystem GameSystem
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
159 {
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
160 get { return selectedSystem; }
29
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
161 }
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
162
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
163 private void lstSystems_DoubleClick(object sender, EventArgs e)
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
164 {
f72a3da5059b Re #88: Complete initial WinForms UI
IBBoard <dev@ibboard.co.uk>
parents: 24
diff changeset
165 bttnSelectSystem_Click(null, null);
24
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
166 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
167 }
7c366fe55635 * Fix line terminators
IBBoard <dev@ibboard.co.uk>
parents: 12
diff changeset
168 }