Ejemplo n.º 1
0
        public static void UseCommand()
        {
            var firstCommand  = new FirstCommand(1);
            var secondCommand = new SecondCommand(2);

            firstCommand.Execute();
            secondCommand.Execute();
        }
Ejemplo n.º 2
0
 private void FirstClick(object sender, EventArgs e)
 {
     FirstCommand?.Execute(null);
 }