示例#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);
        }
示例#2
0
 public void SetPresenter(IIconsPresenter newPresenter)
 {
     presenter = newPresenter;
 }