Пример #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 Reden(Freundin freundin)
 {
     freundin.SetStatus(StatusNeutral.GetInstance());
 }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     freundin = new Freundin(StatusNeutral.GetInstance());
     freundin.Attach(this);
 }