public Controller() { //Création du receiver des commandes commandReceiver = new CommandReceiver(); //Création des commandes CommandManager.RegisterCommand(new NewCommand(commandReceiver, this)); }
public NewCommand(CommandReceiver commandReceiver, IController controller) : base("New", "Nouveau client", Stock.NewIcon, "", "Créer un nouveau client dans un nouveau dossier") { this.commandReceiver = commandReceiver; this.controller = controller; }