Пример #1
0
 void IObserver.Update()
 {
     if (freundin.GetStatus() == StatusLieb.GetInstance())
     {
         LbStatus.Text = "Ich Bin Lieb";
     }
     else if (freundin.GetStatus() == StatusNeutral.GetInstance())
     {
         LbStatus.Text = "Ich bin Neutral";
     }
     else if (freundin.GetStatus() == StatusBockig.GetInstance())
     {
         LbStatus.Text = "I Hate YOUUU";
     }
     else
     {
         LbStatus.Text = "ERROR";
     }
     Refresh();
 }
Пример #2
0
 public void Aergern(Freundin freundin)
 {
     freundin.SetStatus(StatusBockig.GetInstance());
 }