Mercurial > repos > IBBoard.WarFoundry.GUI.WinForms
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 wrap: on
line diff
--- a/FrmNewArmy.cs Sat May 19 16:21:00 2012 +0100 +++ b/FrmNewArmy.cs Sat May 19 16:46:19 2012 +0100 @@ -38,6 +38,7 @@ private string armyName; public bool isDefaultArmyName; private ToolTip gameSystemToolTip; + private Hyperlink getMoreLink; private int maxPoints; public FrmNewArmy(GameSystem system) @@ -115,11 +116,12 @@ this.gameSystems = new System.Windows.Forms.ComboBox(); this.lblGameSystem = new IBBoard.Windows.Forms.IBBLabel(); this.gameSystemToolTip = new System.Windows.Forms.ToolTip(this.components); + this.getMoreLink = new IBBoard.Windows.Forms.Hyperlink(); ((System.ComponentModel.ISupportInitialize)(this.armySize)).BeginInit(); this.SuspendLayout(); - // + // // lstRaces - // + // this.lstRaces.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lstRaces.DisplayMember = "Name"; @@ -129,9 +131,9 @@ this.lstRaces.Size = new System.Drawing.Size(265, 121); this.lstRaces.TabIndex = 7; this.lstRaces.SelectedIndexChanged += new System.EventHandler(this.lstRaces_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(12, 231); @@ -140,18 +142,18 @@ this.bttnCancel.TabIndex = 6; this.bttnCancel.Text = "cancel"; this.bttnCancel.Click += new System.EventHandler(this.bttnCancel_Click); - // + // // lblRaceList - // + // this.lblRaceList.Location = new System.Drawing.Point(12, 33); this.lblRaceList.Name = "lblRaceList"; this.lblRaceList.Size = new System.Drawing.Size(123, 80); this.lblRaceList.TabIndex = 5; this.lblRaceList.Text = "race list"; this.lblRaceList.TextAlign = System.Drawing.ContentAlignment.TopRight; - // + // // bttnSelectRace - // + // this.bttnSelectRace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.bttnSelectRace.Enabled = false; @@ -162,18 +164,18 @@ this.bttnSelectRace.TabIndex = 4; this.bttnSelectRace.Text = "create army"; this.bttnSelectRace.Click += new System.EventHandler(this.bttnSelectRace_Click); - // + // // lblArmyName - // + // this.lblArmyName.Location = new System.Drawing.Point(12, 163); this.lblArmyName.Name = "lblArmyName"; this.lblArmyName.Size = new System.Drawing.Size(123, 17); this.lblArmyName.TabIndex = 8; this.lblArmyName.Text = "army name"; this.lblArmyName.TextAlign = System.Drawing.ContentAlignment.TopRight; - // + // // txtArmyName - // + // this.txtArmyName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtArmyName.Enabled = false; @@ -182,18 +184,18 @@ this.txtArmyName.Size = new System.Drawing.Size(265, 20); this.txtArmyName.TabIndex = 9; this.txtArmyName.TextChanged += new System.EventHandler(this.txtArmyName_TextChanged); - // + // // lblArmySize - // + // this.lblArmySize.Location = new System.Drawing.Point(12, 188); this.lblArmySize.Name = "lblArmySize"; this.lblArmySize.Size = new System.Drawing.Size(123, 18); this.lblArmySize.TabIndex = 10; this.lblArmySize.Text = "army size"; this.lblArmySize.TextAlign = System.Drawing.ContentAlignment.TopRight; - // + // // armySize - // + // this.armySize.Enabled = false; this.armySize.Increment = new decimal(new int[] { 50, @@ -215,10 +217,10 @@ 0, 0, 0}); - this.armySize.ValueChanged += new System.EventHandler(this.armySize_ValueChanged); - // + this.armySize.ValueChanged += new System.EventHandler(this.armySize_ValueChanged); + // // gameSystems - // + // this.gameSystems.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gameSystems.DisplayMember = "Name"; @@ -228,9 +230,9 @@ this.gameSystems.Size = new System.Drawing.Size(265, 21); this.gameSystems.TabIndex = 13; this.gameSystems.SelectedValueChanged += new System.EventHandler(this.gameSystems_SelectedValueChanged); - // + // // lblGameSystem - // + // this.lblGameSystem.Image = global::IBBoard.WarFoundry.GUI.WinForms.Properties.Resources.warning_sml; this.lblGameSystem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lblGameSystem.Location = new System.Drawing.Point(12, 9); @@ -239,11 +241,23 @@ this.lblGameSystem.TabIndex = 12; this.lblGameSystem.Text = "game system"; this.lblGameSystem.TextAlign = System.Drawing.ContentAlignment.TopRight; - // + // + // getMoreLink + // + this.getMoreLink.Location = new System.Drawing.Point(12, 131); + this.getMoreLink.Name = "getMoreLink"; + this.getMoreLink.Size = new System.Drawing.Size(123, 23); + this.getMoreLink.TabIndex = 14; + this.getMoreLink.TabStop = true; + this.getMoreLink.Text = "get more"; + this.getMoreLink.TextAlign = System.Drawing.ContentAlignment.BottomRight; + this.getMoreLink.Url = "http://warfoundry.co.uk/Downloads/datafiles/"; + // // FrmNewArmy - // + // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(418, 267); + this.Controls.Add(this.getMoreLink); this.Controls.Add(this.gameSystems); this.Controls.Add(this.lblGameSystem); this.Controls.Add(this.armySize);