Projektdateien hinzufügen.
This commit is contained in:
12
WindowsFormsApp1/OP/ClassObserver.cs
Normal file
12
WindowsFormsApp1/OP/ClassObserver.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace WindowsFormsApp1.OP
|
||||
{
|
||||
public class ClassObserver: IObserver<int>
|
||||
{
|
||||
public void Update(ISubject<int> subject)
|
||||
{
|
||||
MessageBox.Show(subject.GetState().ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user