private void SetDownloadReplayProgressMaximumValue(int maxProgress) { if (DownloadReplayProgress.InvokeRequired) { DownloadReplayProgress.BeginInvoke((MethodInvoker) delegate() { DownloadReplayProgress.Maximum = maxProgress; }); } else { DownloadReplayProgress.Maximum = maxProgress; } }
private void IncreaseDownloadProgressValue() { if (DownloadReplayProgress.InvokeRequired) { DownloadReplayProgress.BeginInvoke((MethodInvoker) delegate() { DownloadReplayProgress.Value++; }); } else { DownloadReplayProgress.Value++; } }
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; } }