Beispiel #1
0
        void task_BlockFinished(object sender, BlockFinishedEventArgs e)
        {
            FileTransmission task = (FileTransmission)sender;

            if (InvokeRequired)
            {
                this.Invoke(new Delegate_Progress(SetProgress), task);
            }
            else
            {
                SetProgress(task);
            }
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 void onOrientationBlockFinished(object sender, BlockFinishedEventArgs e)
 {
     _currentTask          = null;
     _isLastBlock          = e.IsLastBlock;
     _isWaitingSocialVideo = true;
 }
Beispiel #4
0
 void onPlayingLadyBlockFinished(object sender, BlockFinishedEventArgs e)
 {
     _currentTask = null;
     Invoke(nameof(OrientationNextBlock), PAUSE_BETWEEN_BLOCKS);
 }