Beispiel #1
0
 public MainTreePresenter(IMainTreeView view, IMainService _, IMainController controller, GlobalCommandsProxy commandsProxy)
 {
     _Controller        = controller;
     _CommandsProxy     = commandsProxy;
     View               = view;
     View.NodeSelected += View_NodeSelected;
     OpenCommand        = new DelegateCommand <object>(Open);
     _CommandsProxy.OpenCommand.RegisterCommand(OpenCommand);
 }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="view"></param>
        /// <param name="service"></param>
        /// <param name="controller"></param>
        /// <param name="commandsProxy"></param>
        public MainTreePresenter(IMainTreeView view, IMainService service, IMainController controller, GlobalCommandsProxy commandsProxy)
        {
            this.service       = service;
            this.controller    = controller;
            this.commandsProxy = commandsProxy;

            this.View = view;
            this.View.NodeSelected += View_NodeSelected;

            this.OpenCommand = new DelegateCommand <object>(this.Open);

            this.commandsProxy.OpenCommand.RegisterCommand(this.OpenCommand);
        }