static public void CurlDataProgress(ProgressDataStruct info) { if (OnCurlDataProgress != null) { OnCurlDataProgress(info); } }
public static void CurlDataProgress(ProgressDataStruct info) { if (OnCurlDataProgress != null) { OnCurlDataProgress(info); } }
/// <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); } } }