Esempio n. 1
0
 public SnapshotRunPresenter(ISnapshotRunView view,
                             SnapshotRunner batchRunner,
                             IDialogCreator dialogCreator,
                             ILogPresenter logPresenter,
                             ILogger batchLogger,
                             ISingleFolderSnapshotPresenter singleFolderSnapshotPresenter,
                             IFolderListSnapshotPresenter folderListSnapshotPresenter) : base(view, batchRunner, dialogCreator, logPresenter, batchLogger)
 {
     _singleFolderSnapshotPresenter = singleFolderSnapshotPresenter;
     _folderListSnapshotPresenter   = folderListSnapshotPresenter;
     AddSubPresenters(_singleFolderSnapshotPresenter, _folderListSnapshotPresenter);
     _view.AddSingleFolderView(_singleFolderSnapshotPresenter.View);
     _view.AddFolderListView(_folderListSnapshotPresenter.View);
     selectSnapshotPresenter(_singleFolderSnapshotPresenter);
     _singleFolderSnapshotPresenter.StatusChanged += (o, e) => updateView();
     _folderListSnapshotPresenter.StatusChanged   += (o, e) => updateView();
 }
Esempio n. 2
0
 public void AttachPresenter(IFolderListSnapshotPresenter presenter)
 {
     _presenter = presenter;
 }