Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public void SetCommand(CertainCommand _command)
 {
     command = _command;
 }