Пример #1
0
 private void DepartmentOfTheTreasury_ResourcePropertyChange(object sender, ResourcePropertyChangeEventArgs e)
 {
     if (base.IsVisible && this.City != null && e.ResourcePropertyName == SimulationProperties.BankAccount && this.PopulationBuyoutButton.AgeTransform.Visible)
     {
         CityInfoPanel.RefreshPopulationBuyoutButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationBuyoutButton);
     }
 }
Пример #2
0
 private void RefreshButtons()
 {
     if (this.PopulationBuyoutButton.AgeTransform.Visible)
     {
         CityInfoPanel.RefreshPopulationBuyoutButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationBuyoutButton);
     }
     if (this.PopulationSacrificeButton.AgeTransform.Visible)
     {
         CityInfoPanel.RefreshPopulationSacrificeButton(this.playerControllerRepository.ActivePlayerController.Empire, this.City, this.PopulationSacrificeButton);
     }
 }