public void PrintProgress(ITransferStatisticsSnapshot statistics)
        {
            var message = String.Format(CultureInfo.InvariantCulture, Resources.StatisticsProgressFormat,
                                        statistics.Transferred, statistics.Failed, statistics.ElapsedTime);

            Console.Write("\r{0}", message);
        }
        public void PrintProgress(ITransferStatisticsSnapshot statistics)
        {
            var message = String.Format(CultureInfo.InvariantCulture, Resources.StatisticsProgressFormat,
                statistics.Transferred, statistics.Failed, statistics.ElapsedTime);

            Console.Write("\r{0}", message);
        }
        public void PrintResult(ITransferStatisticsSnapshot statistics)
        {
            Console.Write("\r{0}\r", new String(' ', Console.WindowWidth - 1));

            Console.WriteLine(String.Format(CultureInfo.InvariantCulture, Resources.StatisticsResultFormat,
                statistics.Transferred, statistics.Failed, statistics.ElapsedTime));

            PrintFailures(statistics.GetErrors());
        }
        public void PrintResult(ITransferStatisticsSnapshot statistics)
        {
            Console.Write("\r{0}\r", new String(' ', Console.WindowWidth - 1));

            Console.WriteLine(String.Format(CultureInfo.InvariantCulture, Resources.StatisticsResultFormat,
                                            statistics.Transferred, statistics.Failed, statistics.ElapsedTime));

            PrintFailures(statistics.GetErrors());
        }
 public ObservableTransferStatisticsSnapshot(ITransferStatisticsSnapshot defaultSnapshot, IReadOnlyCollection<KeyValuePair<string, string>> errors)
 {
     this.defaultSnapshot = defaultSnapshot;
     this.errors = errors;
 }
 public ObservableTransferStatisticsSnapshot(ITransferStatisticsSnapshot defaultSnapshot, IReadOnlyCollection <KeyValuePair <string, Exception> > errors)
 {
     this.defaultSnapshot = defaultSnapshot;
     this.errors          = errors;
 }