public static void UseCommand() { var firstCommand = new FirstCommand(1); var secondCommand = new SecondCommand(2); firstCommand.Execute(); secondCommand.Execute(); }
private void SecondClick(object sender, EventArgs e) { SecondCommand?.Execute(null); }