private void disbandClick() { int amount = this.tbTroopsDisband.Value; if (amount > 0) { VillageMap village = GameEngine.Instance.Village; if (village != null) { GameEngine.Instance.playInterfaceSound("DisbandTroopsPopup_disband"); if (this.m_isTroops) { village.disbandTroops(this.m_troopType, amount); } else { village.disbandPeople(this.m_troopType, amount); } this.m_parent.Close(); } } }