Files
ObserverPattern/WindowsFormsApp1/OP/PropertyObserver.cs
2022-07-08 15:24:48 +02:00

21 lines
417 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1.OP
{
public class PropertyObserver : IObserver<string>
{
public PropertyObserver()
{ }
public void Update(ISubject<string> subject)
{
MessageBox.Show(subject.GetState());
}
}
}