static public void Run() { Console.WriteLine("------------Command------------"); UIButton invoker = new UIButton(); Panel receiver = new Panel(); CertainCommand command = new CertainCommand(receiver); invoker.SetCommand(command); invoker.Run(); invoker.Cancel(); }
public void SetCommand(CertainCommand _command) { command = _command; }