コード例 #1
0
 private void DepartmentOfTheTreasury_ResourcePropertyChange(object sender, ResourcePropertyChangeEventArgs e)
 {
     if (base.IsVisible)
     {
         base.NeedRefresh = true;
     }
 }
コード例 #2
0
 private void DepartmentOfTheTreasury_ResourcePropertyChange(object sender, ResourcePropertyChangeEventArgs e)
 {
     if (base.IsVisible && e.ResourcePropertyName == SimulationProperties.BankAccount)
     {
         this.RefreshButtons();
     }
 }
コード例 #3
0
ファイル: CityInfoPanel.cs プロジェクト: LeaderEnemyBoss/ELCP
 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);
     }
 }
コード例 #4
0
 private void DepartmentOfTheTreasury_ResourcePropertyChange(object sender, ResourcePropertyChangeEventArgs e)
 {
     if (e.Location != base.Empire.SimulationObject)
     {
         return;
     }
     base.NeedRefresh = true;
 }
コード例 #5
0
 private void DepartmentOfTheTreasury_ResourcePropertyChange(object sender, ResourcePropertyChangeEventArgs e)
 {
     if (e.Location != base.Empire.SimulationObject)
     {
         return;
     }
     if (base.IsVisible)
     {
         this.RefreshContent();
     }
 }