Ejemplo n.º 1
0
 public UploadRequestSession(UploadRequest objUploadRequest, JobTicket objJobTicket)
     : base()
 {
     UploadRequest = objUploadRequest;
     JobTicket     = objJobTicket;
     UploadStats   = new UploadStats(objUploadRequest, objJobTicket.StartTime);
 }
Ejemplo n.º 2
0
        private TaskActionType objUploadJob_TaskEnd(ITaskResult objTaskResult, int intIndex)
        {
            timerUpdateProgress.Enabled = false;

            TaskActionType enuTaskActionType = TaskActionType.Continue;

            if (objTaskResult.Result == TaskResultType.Failed)
            {
                enuTaskActionType = UploadFailedMessage.ShowMessage(objTaskResult);
            }

            this.ThreadSafe(new MethodInvoker(delegate()
            {
                timerUpdateProgress.Enabled = false;

                UpdateOverallProgress(_intTaskCount, _intTaskIndex);
                ListViewItem objListViewItem = listViewStatus.Items[_intTaskIndex - 1];
                if (objListViewItem != null)
                {
                    objListViewItem.SubItems[1].Text = objTaskResult.Result.ToString();
                    listViewStatus.EnsureVisible(objListViewItem.Index);
                }

                UpdateCurrentProgress(progressBarCurrent.Maximum, progressBarCurrent.Maximum);
            }));

            _objCurrentUploadStats = null;
            return(enuTaskActionType);
        }
Ejemplo n.º 3
0
        private void objUploadJob_TaskProgressChanged(ITaskStats objTaskStats)
        {
            IUploadStats objStats = (IUploadStats)objTaskStats;

            _objCurrentUploadStats = (UploadStats)objStats;
        }