Exemple #1
0
        private void UpdateProgressBar()
        {
            currentPosition += line.Length + 4; // or plus 4 if you need to take into account carriage return
            int value = (int)Math.Round((((decimal)currentPosition / (decimal)length) * (decimal)100), 0);

            myform.progressBarValueAccessor(value > 100? 100:value);
            //  myform.lblProgressBarAccessor(value);
        }
Exemple #2
0
 private void UpdateProgressBar()
 {
     writeCursorValue += (int)Math.Round((100.0 / length) + 0.4);
     myform.progressBarValueAccessor(writeCursorValue > 100 ? 100 : writeCursorValue);
 }