public BrowserPresenter(IBrowserLogic logic, IBrowserView view) {
     this._logic = logic;
     this._view = view;
     this._progress.ProgressChanged += (sender, progress) => {
                                           this._view.UpdateProgress(
                                               progress.ShowPercent
                                                   ? string.Format("{0}%",
                                                       progress.PercentDone.ToString(
                                                           CultureInfo.InvariantCulture))
                                                   : string.Empty,
                                               progress.OperationText, progress.Cancellable);
                                           this._downloadedLocation = progress.DownloadedPath;
                                       };
 }
 public BrowserPresenter(IBrowserLogic logic, IBrowserView view)
 {
     _logic = logic;
     _view  = view;
     _progress.ProgressChanged += (sender, progress) => {
         _view.UpdateProgress(
             progress.ShowPercent
                                              ? string.Format("{0}%",
                                                              progress.PercentDone.ToString(
                                                                  CultureInfo.InvariantCulture))
                                              : string.Empty,
             progress.OperationText, progress.Cancellable);
         _downloadedLocation = progress.DownloadedPath;
     };
 }
Exemple #3
0
 public LandingPresenter(
     ILandingLogic logic,
     IBrowserLogic browserLogic,
     IDownloadLogic downloadLogic,
     IDonateIntentCheckLogic donateIntentCheckLogic,
     ILandingView view)
 {
     _logic                  = logic;
     _browserLogic           = browserLogic;
     _downloadLogic          = downloadLogic;
     _donateIntentCheckLogic = donateIntentCheckLogic;
     _view = view;
     _progress.ProgressChanged += (sender, progress) =>
     {
         _view.UpdateProgress(
             progress.ShowPercent
   ? string.Format("{0}{1}",
                   progress.AlbumProgress,
                   progress.PercentDone > 0 ? string.Format(" - {0}%", progress.PercentDone.ToString(CultureInfo.InvariantCulture)): string.Empty)
     : string.Empty,
             progress.OperationText, progress.Cancellable);
         _downloadedLocation = progress.DownloadedPath;
     };
 }
 public void SetupTestFixture()
 {
     Bootstrapper.Initialize();
     _loginLogic = Bootstrapper.GetInstance<ILoginLogic>();
     _logic = Bootstrapper.GetInstance<IBrowserLogic>();
 }
Exemple #5
0
 public void SetupTestFixture()
 {
     Bootstrapper.Initialize();
     _loginLogic = Bootstrapper.GetInstance <ILoginLogic>();
     _logic      = Bootstrapper.GetInstance <IBrowserLogic>();
 }