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