Example #1
0
 /// <summary>
 /// 更新状态栏
 /// </summary>
 /// <param name="Message"></param>
 /// <param name="Status"></param>
 /// <param name="FullSize"></param>
 /// <param name="CurrentBytes"></param>
 /// <param name="EstimatedTimeLeft"></param>
 /// <param name="Speed"></param>
 private void ftpCtl1_StatusUpdateEvent(string Message, DotNetRemoting.DStatus Status, long FullSize, long CurrentBytes, TimeSpan EstimatedTimeLeft, double Speed)
 {
     toolStripLabelStatus.Text = Status.ToString();
     label_mess.Text           = Message;
     toolStripLabelTime.Text   = BaseDownloader.TimeSpanToString(EstimatedTimeLeft);
     toolStripLabelSpeed.Text  = Speed.ToString("F1") + " Kb/s";
     if (Status == DStatus.complete || Status == DStatus.error)
     {
         if (Status == DStatus.complete)
         {
             listViewData.AppendLog(new string[] { "test", "success" });
         }
         btnUpLoad.Text = "UpLoad";
     }
 }
Example #2
0
 /// <summary>
 /// 更新上传进度条
 /// </summary>
 /// <param name="Message"></param>
 /// <param name="Status"></param>
 /// <param name="FullSize"></param>
 /// <param name="CurrentBytes"></param>
 /// <param name="EstimatedTimeLeft"></param>
 /// <param name="Speed"></param>
 private void FtpClientCtrl_StatusUpdateEvent(string Message, DStatus Status, long FullSize, long CurrentBytes, TimeSpan EstimatedTimeLeft, double Speed)
 {
     toolStripLabelStatus.Text = Status.ToString();
     label_mess.Text           = Message;
     toolStripLabelTime.Text   = BaseDownloader.TimeSpanToString(EstimatedTimeLeft);
     toolStripLabelSpeed.Text  = Speed.ToString("F1") + " Kb/s";
     isUpLoading = true;
     if (Status == DStatus.complete || Status == DStatus.error)
     {
         isUpLoading = false;
         if (Status == DStatus.complete)
         {
             listViewData.AppendLog(new string[] { image.FileName, Status.ToString() });
         }
     }
 }