Esempio n. 1
0
 private void SetDownloadReplayProgressMaximumValue(int maxProgress)
 {
     if (DownloadReplayProgress.InvokeRequired)
     {
         DownloadReplayProgress.BeginInvoke((MethodInvoker) delegate() { DownloadReplayProgress.Maximum = maxProgress; });
     }
     else
     {
         DownloadReplayProgress.Maximum = maxProgress;
     }
 }
Esempio n. 2
0
 private void IncreaseDownloadProgressValue()
 {
     if (DownloadReplayProgress.InvokeRequired)
     {
         DownloadReplayProgress.BeginInvoke((MethodInvoker) delegate() { DownloadReplayProgress.Value++; });
     }
     else
     {
         DownloadReplayProgress.Value++;
     }
 }
Esempio n. 3
0
        private void ResetDownloadReplayUI()
        {
            this.SetDownloadReplayStatus("Idle");

            if (DownloadReplayUrlText.InvokeRequired || DownloadReplayProgress.InvokeRequired)
            {
                DownloadReplayUrlText.BeginInvoke((MethodInvoker) delegate() { DownloadReplayUrlText.Text = String.Empty; });
                DownloadReplayProgress.BeginInvoke((MethodInvoker) delegate()
                {
                    DownloadReplayProgress.Value   = 0;
                    DownloadReplayProgress.Maximum = 100;
                });
            }
            else
            {
                DownloadReplayUrlText.Text     = String.Empty;
                DownloadReplayProgress.Value   = 0;
                DownloadReplayProgress.Maximum = 100;
            }
        }