示例#1
0
        public Controller()
        {
            //Création du receiver des commandes
              	commandReceiver = new CommandReceiver();

              	//Création des commandes
              	CommandManager.RegisterCommand(new NewCommand(commandReceiver, this));
        }
示例#2
0
 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;
 }
示例#3
0
 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;
 }