コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: opswip/nur_sample_windows
        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++;
            }
        }