Beispiel #1
0
 public bool Is(IObject PropertyStat)
 {
     if (PropertyStat is EducStat)
     {
         if ((PropertyStat as EducStat).Educ != null)
         {
             foreach (EEduc x in (PropertyStat as EducStat).Educ)
             {
                 if (Educ.Contains(x) == false)
                 {
                     System.Windows.MessageBox.Show("Потрібно " + x.ToString());
                     return(false);
                 }
             }
         }
     }
     return(true);
 }
Beispiel #2
0
 public bool NegativeEffect(IObject otherStat)
 {
     if (otherStat is EducStat)
     {
         if ((otherStat as EducStat).Educ != null)
         {
             foreach (EEduc x in (otherStat as EducStat).Educ)
             {
                 if (Educ.Contains(x))
                 {
                     Educ.Remove(x);
                     OnPropertyChanged("HighestEduc");
                     return(true);
                 }
             }
         }
     }
     return(false);
 }