30 lines
661 B
C#
30 lines
661 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using WindowsFormsApp1.classes;
|
|
using WindowsFormsApp1.OP;
|
|
|
|
namespace WindowsFormsApp1.Test
|
|
{
|
|
public class BaseTextBox : ABaseTexBox, OP.IObserver<string>
|
|
{
|
|
public BaseTextBox() : base()
|
|
{
|
|
ForeColor = Color.White;
|
|
BackColor = Color.DarkOrange;
|
|
}
|
|
|
|
public override string Description { get; set; }
|
|
|
|
public void Update(ISubject<string> subject)
|
|
{
|
|
|
|
MessageBox.Show(subject.GetState());
|
|
}
|
|
}
|
|
}
|