Example #1
0
        public override void WriteProgress(long sourceId, ProgressRecord record)
        {
            var message = record.Activity + " " + record.StatusDescription + " " + record.CurrentOperation;
            if (record.SecondsRemaining > 0)
                message += "(remaining " + record.SecondsRemaining + " seconds)";

            var percent = record.PercentComplete >= 0 ? record.PercentComplete : 0;

            _sessionViewModel.WriteProgress(message, percent);
        }