public LandingPresenter(ILandingLogic logic, ILandingView 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);
                                       };
 }
 public LandingPresenter(ILandingLogic logic, ILandingView 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);
     };
 }
예제 #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();
     this._loginLogic = Bootstrapper.GetInstance<ILoginLogic>();
     this._logic = Bootstrapper.GetInstance<ILandingLogic>();
 }
 public void SetupTestFixture()
 {
     Bootstrapper.Initialize();
     _loginLogic = Bootstrapper.GetInstance <ILoginLogic>();
     _logic      = Bootstrapper.GetInstance <ILandingLogic>();
 }