Ejemplo n.º 1
0
        }     // ProgressSectionReceived

        private void ProgressRunEnded(DvbStpExplorer.RunEndedEventArgs run)
        {
            var itemData = new string[]
            {
                string.Format("p{0:X2}s{1:X4}v{2:X2}", run.PayloadId, run.SegmentId, run.SegmentVersion),
                string.Format("{0,6:N0}", run.StartSectionNumber),
                string.Format("{0,6:N0}", run.EndSectionNumber),
                string.Format("{0,6:N0}", run.LastSectionNumber),
                string.Format("{0,6:N0}", run.ReceivedPayloadBytes),
                string.Format("{0,6:N0}", run.TotalSegmentSize),
                (DateTime.Now - StartTime).ToString(),
            };
            var item = new ListViewItem(itemData);

            listViewRuns.Items.Add(item);
            item.EnsureVisible();
        } // ProgressRunEnded
Ejemplo n.º 2
0
        } // Explorer_SectionReceived

        private void Explorer_RunEnded(object sender, DvbStpExplorer.RunEndedEventArgs e)
        {
            Worker.ReportProgress(2, e);
        } // Explorer_RunEnded