ProgressStatus Example for C#

//This example uses the predefined variable “Label1” of type “Label” from “.NET Framework”.
//LEADDICOM1 is a DICOM Dataset defined outside this method
//This example uses the predefined variable "bQuit" of type "bool"
private void LEADDICOM1_ProgressStatus(short nPercent)
{
   Label1.Text = "Loading..." + System.Convert.ToString(nPercent) + "%";
   if (bQuit == true)
   //bQuit is used to indicate the user request to abort the current operation. LEADDICOM1.EnableProgressEvent = false;
   //stop the load System.Windows.Forms.Application.DoEvents();
}