Exemple #1
0
        private void SetTimeRemainingString()
        {
            Int64    rate = _calculator.GetRate();
            TimeSpan time = _calculator.GetTimeRemaining();

            String timeS = time == TimeSpan.MaxValue ? "Indeterminate" : time.ToString() + " remaining";

            __time.Text = String.Format(CultureInfo.InvariantCulture, "{0}% - {1} - {2}KB/{3}KB at {4}KB/s", __progress.Value, timeS, _calculator.LastValue / 1024, _calculator.Total / 1024, rate / 1024);
        }