Exemplo n.º 1
0
        public void SetView(IMainView mainView)
        {
            view = mainView;

            iconsPresenter = new IconsPresenter(this);
            IIconsView iconsView = view.IconsView;

            iconsPresenter.SetView(iconsView);
            iconsView.SetPresenter(iconsPresenter);

            commandsPresenter = new CommandsPresenter(this);
            ICommandsView commandsView = view.CommandsView;

            commandsPresenter.SetView(commandsView);
            commandsView.SetPresenter(commandsPresenter);

            assignPresenter = new AssignmentPresenter(this);
            IAssignmentView assignView = view.AssignmentView;

            assignPresenter.SetView(assignView);
            assignView.SetPresenter(assignPresenter);
        }
Exemplo n.º 2
0
 public void SetView(IAssignmentView assignView)
 {
     view = assignView;
 }