IsAsyncOperations Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestIsAsyncOperations ( )
{
   if (LEADDICOMNet1.IsAsyncOperations(LEADDICOMNet1.hPDU) == true)
   {
      MessageBox.Show("AsyncOperations enabled");
      //get the operations counts
      MessageBox.Show("Invoked " + System.Convert.ToString(LEADDICOMNet1.GetInvokedOperationsCount(LEADDICOMNet1.hPDU)));
      MessageBox.Show("Performed " + System.Convert.ToString(LEADDICOMNet1.GetPerformedOperationsCount(LEADDICOMNet1.hPDU)));
      //now disable it
      LEADDICOMNet1.SetAsyncOperations(LEADDICOMNet1.hPDU, false, 0, 0);
   }
   else
   {
      MessageBox.Show("AsyncOperations disabled");
      //now enable it
      LEADDICOMNet1.SetAsyncOperations(LEADDICOMNet1.hPDU, true, 0, 0);
   }
}