void mTag_ProgressEvent(object sender, RTProgressEvent e) { if (e.reset) { ScanProgress.Value = 0; } else if (e.step == false) { _ProgressInit(ScanProgress, e.min, e.max, 1); } else { _ProgressStep(ScanProgress); } }
void mTag_ProgressEvent(object sender, RTProgressEvent e) { if (!e.reset && !e.step) { // Init. mDownloadCurPtr = 0; mDownloadMaxVal = e.max; return; } if (e.reset) { mDownloadCurPtr = 0; ControlText(StatusText, "Start..."); } else { ControlText(StatusText, "Read " + mDownloadCurPtr + " / " + mDownloadMaxVal); mDownloadCurPtr++; } }