Projektdateien hinzufügen.

This commit is contained in:
Kevin Krüger
2022-07-08 15:24:48 +02:00
parent be47a7e74c
commit d25b2cda8e
21 changed files with 874 additions and 0 deletions

40
WindowsFormsApp1/Form1.cs Normal file
View File

@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApp1.OP;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
Subject<string> Subject = new Subject<string>();
public Form1()
{
InitializeComponent();
Subject.Subscribe(new ClassObserver());
Subject.Subscribe(new PropertyObserver());
}
private void baseTextBox1_TextChanged(object sender, EventArgs e)
{
Subject.SetState(baseTextBox1.Text);
}
private void button1_Click(object sender, EventArgs e)
{
baseTextBox1.Reset();
}
private void button2_Click(object sender, EventArgs e)
{
extendedTB1.Reset();
}
}
}