예제 #1
0
 public BeneficalWard(string name, UnderEffect underEffect, RemoveEffect removeEffect, double requiredSkill)
 {
     m_Name          = name;
     m_UnderEffect   = underEffect;
     m_RemoveEffect  = removeEffect;
     m_requiredSkill = requiredSkill;
 }
예제 #2
0
 // ----------------------------------------------------------------------------------------------------------------- //
 private void LikeLogic()
 {
     if (AppHelper.Storage.Contains(AppHelper.PageIndex.ToString()))
     {
         LikeLogo.Visibility = System.Windows.Visibility.Visible;
         ((ApplicationBarIconButton)this.ApplicationBar.Buttons[1]).Text    = "удалить";
         ((ApplicationBarIconButton)this.ApplicationBar.Buttons[1]).IconUri = _uriHeartBreak;
         LikeEffect.Begin();
     }
     else
     {
         ((ApplicationBarIconButton)this.ApplicationBar.Buttons[1]).Text    = "добавить";
         ((ApplicationBarIconButton)this.ApplicationBar.Buttons[1]).IconUri = _uriHeart;
         RemoveEffect.Begin();
     }
 }
예제 #3
0
 public BeneficalWard( string name, UnderEffect underEffect, RemoveEffect removeEffect, double requiredSkill )
 {
     m_Name = name;
     m_UnderEffect = underEffect;
     m_RemoveEffect = removeEffect;
     m_requiredSkill = requiredSkill;
 }