public int BufferCB(double SampleTime, IntPtr pBuffer, int BufferLen) { AppUtil.IncrementProgressBar(this.progress, 1); return(0); }