Пример #1
0
 public override void Handle(Context context)
 {
     context.State = new StateA();
 }
Пример #2
0
 private void btnState_Click(object sender, EventArgs e)
 {
     Context test = new Context(new StateA());
     test.Request();
     test.Request();
     test.Request();
 }
Пример #3
0
 public abstract void Handle(Context context);