Exemplo n.º 1
0
 private void OnProgressUpdate(object sender, ProgressUpdateEventArgs e)
 {
     if (ProgressUpdate != null)
     {
         ProgressUpdate(sender, e);
     }
 }
Exemplo n.º 2
0
 private void update_ProgressUpdate(object sender, ProgressUpdateEventArgs e)
 {
     Invoke((MethodInvoker)delegate
     {
         pbProgress.Value = e.ProgressPercentage;
         lblStatus.Text = string.Format("Status: Downloading {0} / {1}...", e.Current, e.Max);
     });
 }
Exemplo n.º 3
0
        private void OnExtractionProgressUpdate(object sender, ProgressUpdateEventArgs e)
        {
            ExtractionTask task = e.State as ExtractionTask;

            if (task != null)
            {
                Invoke((MethodInvoker)delegate()
                {
                    ListViewItem item = _extractionTable[task];
                    UpdateExtractionStatus(task, item, e.Current, e.Max, e.ProgressPercentage, "Extracting...");
                });
            }
        }
Exemplo n.º 4
0
        private void OnPatchingProgressUpdate(object sender, ProgressUpdateEventArgs e)
        {
            PatchingTask task = e.State as PatchingTask;

            if (task != null)
            {
                Invoke((MethodInvoker)delegate()
                {
                    ListViewItem item = _patchTable[task];
                    UpdatePatchingStatus(task, item, e.Current, e.Max, e.ProgressPercentage, "Patching...");
                });

            }
        }
Exemplo n.º 5
0
        private void OnDownloadStateProgressUpdate(object sender, ProgressUpdateEventArgs e)
        {
            DownloadTask state = e.State as DownloadTask;

            if (state != null)
            {
                Invoke((MethodInvoker)delegate()
                {
                    ListViewItem item = _downloadTable[state];
                    UpdateDownloadStatus(state, item, e.Current, e.Max, e.ProgressPercentage, "Downloading...");
                });

            }
        }