changeset 242:2bde6d18d3bd

Re #417: Improve install/first use experience * Add "Get More" link to army creation form to match GTK#
author IBBoard <dev@ibboard.co.uk>
date Sat, 19 May 2012 16:46:19 +0100
parents e532d2f51ff0
children 425912324be5
files FrmNewArmy.cs
diffstat 1 files changed, 37 insertions(+), 23 deletions(-) [+]
line diff
     1.1 --- a/FrmNewArmy.cs	Sat May 19 16:21:00 2012 +0100
     1.2 +++ b/FrmNewArmy.cs	Sat May 19 16:46:19 2012 +0100
     1.3 @@ -38,6 +38,7 @@
     1.4  		private string armyName;
     1.5          public bool isDefaultArmyName;
     1.6  		private ToolTip gameSystemToolTip;
     1.7 +		private Hyperlink getMoreLink;
     1.8  		private int maxPoints;
     1.9  
    1.10  		public FrmNewArmy(GameSystem system)
    1.11 @@ -115,11 +116,12 @@
    1.12  			this.gameSystems = new System.Windows.Forms.ComboBox();
    1.13  			this.lblGameSystem = new IBBoard.Windows.Forms.IBBLabel();
    1.14  			this.gameSystemToolTip = new System.Windows.Forms.ToolTip(this.components);
    1.15 +			this.getMoreLink = new IBBoard.Windows.Forms.Hyperlink();
    1.16  			((System.ComponentModel.ISupportInitialize)(this.armySize)).BeginInit();
    1.17  			this.SuspendLayout();
    1.18 -			//
    1.19 +			// 
    1.20  			// lstRaces
    1.21 -			//
    1.22 +			// 
    1.23  			this.lstRaces.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.24  						| System.Windows.Forms.AnchorStyles.Right)));
    1.25  			this.lstRaces.DisplayMember = "Name";
    1.26 @@ -129,9 +131,9 @@
    1.27  			this.lstRaces.Size = new System.Drawing.Size(265, 121);
    1.28  			this.lstRaces.TabIndex = 7;
    1.29  			this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_SelectedIndexChanged);
    1.30 -			//
    1.31 +			// 
    1.32  			// bttnCancel
    1.33 -			//
    1.34 +			// 
    1.35  			this.bttnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    1.36  			this.bttnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
    1.37  			this.bttnCancel.Location = new System.Drawing.Point(12, 231);
    1.38 @@ -140,18 +142,18 @@
    1.39  			this.bttnCancel.TabIndex = 6;
    1.40  			this.bttnCancel.Text = "cancel";
    1.41  			this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click);
    1.42 -			//
    1.43 +			// 
    1.44  			// lblRaceList
    1.45 -			//
    1.46 +			// 
    1.47  			this.lblRaceList.Location = new System.Drawing.Point(12, 33);
    1.48  			this.lblRaceList.Name = "lblRaceList";
    1.49  			this.lblRaceList.Size = new System.Drawing.Size(123, 80);
    1.50  			this.lblRaceList.TabIndex = 5;
    1.51  			this.lblRaceList.Text = "race list";
    1.52  			this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight;
    1.53 -			//
    1.54 +			// 
    1.55  			// bttnSelectRace
    1.56 -			//
    1.57 +			// 
    1.58  			this.bttnSelectRace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.59  						| System.Windows.Forms.AnchorStyles.Right)));
    1.60  			this.bttnSelectRace.Enabled = false;
    1.61 @@ -162,18 +164,18 @@
    1.62  			this.bttnSelectRace.TabIndex = 4;
    1.63  			this.bttnSelectRace.Text = "create army";
    1.64  			this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click);
    1.65 -			//
    1.66 +			// 
    1.67  			// lblArmyName
    1.68 -			//
    1.69 +			// 
    1.70  			this.lblArmyName.Location = new System.Drawing.Point(12, 163);
    1.71  			this.lblArmyName.Name = "lblArmyName";
    1.72  			this.lblArmyName.Size = new System.Drawing.Size(123, 17);
    1.73  			this.lblArmyName.TabIndex = 8;
    1.74  			this.lblArmyName.Text = "army name";
    1.75  			this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight;
    1.76 -			//
    1.77 +			// 
    1.78  			// txtArmyName
    1.79 -			//
    1.80 +			// 
    1.81  			this.txtArmyName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    1.82  						| System.Windows.Forms.AnchorStyles.Right)));
    1.83  			this.txtArmyName.Enabled = false;
    1.84 @@ -182,18 +184,18 @@
    1.85  			this.txtArmyName.Size = new System.Drawing.Size(265, 20);
    1.86  			this.txtArmyName.TabIndex = 9;
    1.87  			this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged);
    1.88 -			//
    1.89 +			// 
    1.90  			// lblArmySize
    1.91 -			//
    1.92 +			// 
    1.93  			this.lblArmySize.Location = new System.Drawing.Point(12, 188);
    1.94  			this.lblArmySize.Name = "lblArmySize";
    1.95  			this.lblArmySize.Size = new System.Drawing.Size(123, 18);
    1.96  			this.lblArmySize.TabIndex = 10;
    1.97  			this.lblArmySize.Text = "army size";
    1.98  			this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight;
    1.99 -			//
   1.100 +			// 
   1.101  			// armySize
   1.102 -			//
   1.103 +			// 
   1.104  			this.armySize.Enabled = false;
   1.105  			this.armySize.Increment = new decimal(new int[] {
   1.106              50,
   1.107 @@ -215,10 +217,10 @@
   1.108              0,
   1.109              0,
   1.110              0});
   1.111 -            this.armySize.ValueChanged += new System.EventHandler(this.armySize_ValueChanged);
   1.112 -            //
   1.113 +			this.armySize.ValueChanged += new System.EventHandler(this.armySize_ValueChanged);
   1.114 +			// 
   1.115  			// gameSystems
   1.116 -			//
   1.117 +			// 
   1.118  			this.gameSystems.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
   1.119  						| System.Windows.Forms.AnchorStyles.Right)));
   1.120  			this.gameSystems.DisplayMember = "Name";
   1.121 @@ -228,9 +230,9 @@
   1.122  			this.gameSystems.Size = new System.Drawing.Size(265, 21);
   1.123  			this.gameSystems.TabIndex = 13;
   1.124  			this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged);
   1.125 -			//
   1.126 +			// 
   1.127  			// lblGameSystem
   1.128 -			//
   1.129 +			// 
   1.130  			this.lblGameSystem.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.warning_sml;
   1.131  			this.lblGameSystem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
   1.132  			this.lblGameSystem.Location = new System.Drawing.Point(12, 9);
   1.133 @@ -239,11 +241,23 @@
   1.134  			this.lblGameSystem.TabIndex = 12;
   1.135  			this.lblGameSystem.Text = "game system";
   1.136  			this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight;
   1.137 -			//
   1.138 +			// 
   1.139 +			// getMoreLink
   1.140 +			// 
   1.141 +			this.getMoreLink.Location = new System.Drawing.Point(12, 131);
   1.142 +			this.getMoreLink.Name = "getMoreLink";
   1.143 +			this.getMoreLink.Size = new System.Drawing.Size(123, 23);
   1.144 +			this.getMoreLink.TabIndex = 14;
   1.145 +			this.getMoreLink.TabStop = true;
   1.146 +			this.getMoreLink.Text = "get more";
   1.147 +			this.getMoreLink.TextAlign = System.Drawing.ContentAlignment.BottomRight;
   1.148 +			this.getMoreLink.Url = "http://warfoundry.co.uk/Downloads/datafiles/";
   1.149 +			// 
   1.150  			// FrmNewArmy
   1.151 -			//
   1.152 +			// 
   1.153  			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
   1.154  			this.ClientSize = new System.Drawing.Size(418, 267);
   1.155 +			this.Controls.Add(this.getMoreLink);
   1.156  			this.Controls.Add(this.gameSystems);
   1.157  			this.Controls.Add(this.lblGameSystem);
   1.158  			this.Controls.Add(this.armySize);