コード例 #1
0
 public BrowserPresenter(IBrowserLogic logic, IBrowserView view, IDonateIntentCheckLogic donateIntentCheckLogic)
 {
     _logic = logic;
     _view  = view;
     _donateIntentCheckLogic    = donateIntentCheckLogic;
     _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;
     };
 }