Exemple #1
0
        public static void UseCommand()
        {
            var firstCommand  = new FirstCommand(1);
            var secondCommand = new SecondCommand(2);

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