void task_BlockFinished(object sender, BlockFinishedEventArgs e) { FileTransmission task = (FileTransmission)sender; if (InvokeRequired) { this.Invoke(new Delegate_Progress(SetProgress), task); } else { SetProgress(task); } }
void task_BlockHashed(object sender, BlockFinishedEventArgs e) { FileTransmission task = (FileTransmission)sender; if (InvokeRequired) { this.Invoke(new Delegate_Void_Bool(b => this.Text = "接收端 校验中"), false); this.Invoke(new Delegate_Progress(SetProgressBar), task); } else { this.Text = "接收端 校验中"; SetProgressBar(task); } }
void onOrientationBlockFinished(object sender, BlockFinishedEventArgs e) { _currentTask = null; _isLastBlock = e.IsLastBlock; _isWaitingSocialVideo = true; }
void onPlayingLadyBlockFinished(object sender, BlockFinishedEventArgs e) { _currentTask = null; Invoke(nameof(OrientationNextBlock), PAUSE_BETWEEN_BLOCKS); }