Exemplo n.º 1
0
        private void ReadProgressCSV(ProgressEventArgs e)
        {
            if (e.ProgressCurrent % 813 == 0)
            {
                decimal value = (e.ProgressCurrent / (csvSizeGuess + 1)) * 100;
                if (value >= 0 && value < 100)
                    main.processing.SetValue = (int)value;
                main.processing.SetText = "Leser CSV: " + e.ProgressCurrent.ToString("#,##0") + "..";

            }
        }
Exemplo n.º 2
0
		private void ProgressChange(ProgressEventArgs e)
		{
			prog1.PositionMax = e.ProgressTotal;
			prog2.PositionMax = e.ProgressTotal;
			prog3.PositionMax = e.ProgressTotal;
			prog4.PositionMax = e.ProgressTotal;

			prog1.Position = e.ProgressCurrent;
			prog2.Position = e.ProgressCurrent;
			prog3.Position = e.ProgressCurrent;
			prog4.Position = e.ProgressCurrent;

			prog3.Text = "Record " + e.ProgressCurrent.ToString();
			prog4.Text = e.ProgressCurrent.ToString() + " Of " + e.ProgressTotal.ToString();

			Application.DoEvents();
			Thread.Sleep(10);
		}
Exemplo n.º 3
0
 private void ReadProgressCSV(ProgressEventArgs e)
 {
     if (e.ProgressCurrent % 831 == 0)
         main.processing.SetText = "Leser CSV: " + e.ProgressCurrent.ToString("#,##0") + "..";
 }