Example #1
0
        /// <summary>
        /// Update Current District Payment information.
        /// </summary>
        private void UpdateCurrentDistrictPayments()
        {
            var upgradeCost = _selectedDistrict.UpgradeCost();

            UpdatePurchaseCosts(upgradeCost, "Upgrade", _selectedDistrict.CanUpgrade());

            try
            {
                var purchaseCost = _selectedDistrict.PurchaseCost();
                UpdatePurchaseCosts(purchaseCost, "Purchase", _selectedDistrict.CanPurchase());
                labelPurchase.Text = _selectedDistrict.PurchaseName();
            }
            catch (NotImplementedException)
            {
                panelPurchase.Hide();
            }
        }