Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmMain.cs @ 239:c06d0865ff27
Fixes #388: Add "Add unit" options to army tree
* Add button, context menu and double-click hooks for adding units
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Jan 2012 11:36:23 +0000 |
parents | 4ada3252d1ea |
children | ea5cb50ebe5e |
comparison
equal
deleted
inserted
replaced
238:1ebbe78f89e7 | 239:c06d0865ff27 |
---|---|
1201 } | 1201 } |
1202 | 1202 |
1203 this.Text = str; | 1203 this.Text = str; |
1204 } | 1204 } |
1205 | 1205 |
1206 private void AddUnitFromCategory(Category cat) | 1206 internal void AddUnitFromCategory(Category cat) |
1207 { | 1207 { |
1208 FrmNewUnit newUnit = new FrmNewUnit(CurrentArmy.Race, cat, CurrentArmy); | 1208 FrmNewUnit newUnit = new FrmNewUnit(CurrentArmy.Race, cat, CurrentArmy); |
1209 DialogResult dr = newUnit.ShowDialog(this); | 1209 DialogResult dr = newUnit.ShowDialog(this); |
1210 | 1210 |
1211 if (dr == DialogResult.OK) | 1211 if (dr == DialogResult.OK) |