Пример #1
0
 private void setBonus(Label label, IResearchType researchType, int level)
 {
     if (level > 0 && level <= researchType.GetMaxLevel())
     {
         label.Content = researchType.GetResearchBonus(level).GetFirstBonus() + " %";
     }
 }
Пример #2
0
 private void setNextBonus(Label label, IResearchType researchType, int level)
 {
     if (level >= 0 && level < researchType.GetMaxLevel())
     {
         label.Content = researchType.GetResearchBonus(level + 1).GetFirstBonus() + " %";
     }
     else
     {
         label.Content = "No research bonus next";
     }
 }
Пример #3
0
 private void setBonus(Label label, IResearchType researchType, int level)
 {
     if (level > 0 && level <= researchType.GetMaxLevel())
     {
         label.Content = researchType.GetResearchBonus(level).GetFirstBonus() + " %";
     }
 }
Пример #4
0
 private void setNextBonus(Label label, IResearchType researchType, int level)
 {
     if (level >= 0 && level < researchType.GetMaxLevel())
     {
         label.Content = researchType.GetResearchBonus(level + 1).GetFirstBonus() + " %";
     }
     else
     {
         label.Content = "No research bonus next";
     }
 }