Пример #1
0
 static public void CurlDataProgress(ProgressDataStruct info)
 {
     if (OnCurlDataProgress != null)
     {
         OnCurlDataProgress(info);
     }
 }
Пример #2
0
 public static void CurlDataProgress(ProgressDataStruct info)
 {
     if (OnCurlDataProgress != null)
     {
         OnCurlDataProgress(info);
     }
 }
Пример #3
0
 /// <summary>
 /// Progress upload of file with CURL 
 /// </summary>
 /// <param name="info"></param>
 void DrutNETBase_OnCurlDataProgress(ProgressDataStruct info)
 {
     if (info.ulTotal > 0)
     {
         progressBar1.Maximum = Convert.ToInt32(info.ulTotal);
         _started = true;
     }
     if (_started)
     {
         progressBar1.Value = Convert.ToInt32(info.ulNow);
         if ((info.ulTotal == info.ulNow))
         {
             _started = false;
             DrutNETBase.OnCurlDataProgress -= new DrutNETBase.CurlDataProgressDel(DrutNETBase_OnCurlDataProgress);
         }
     }
 }