public void Run() { Context c=new Context(); c.SetStatus(new ConcreteStatusA()); c.Request(); c.Request(); }
public override void Handle(Context context) { Console.WriteLine(Name+"is handle context"); context.SetStatus(new ConcreteStatusA()); }
public void Run() { Context c=new Context(); c.SetStatus(new ConcreteStatusA()); c.Request(); c.Request(); }
public override void Handle(Context context) { Console.WriteLine(Name+"is handle context"); context.SetStatus(new ConcreteStatusA()); }