Projektdateien hinzufügen.
This commit is contained in:
40
WindowsFormsApp1/Form1.cs
Normal file
40
WindowsFormsApp1/Form1.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user