private void RasterRenderer_ProgressChanged(object sender, OngoingOperation og, double p, ref bool cancel)
        {
            var per = 100 * decimal.Divide(Convert.ToDecimal(p), 100);

            label1.Update();
            label1.Text = $@"{per:F2}% completed.";
        }
Example #2
0
 /// <summary>
 /// Handle progress change event
 /// </summary>
 private static void Extractor_ProgressChanged(object sender, OngoingOperation ongoingOperation, double progress, ref bool cancel)
 {
     drawTextProgressBar(Convert.ToInt32(progress), 100);
 }