GetModuleCount Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestGetModuleCount ( )
{
   int lCount = 0;
   lCount = LEADDICOM1.GetModuleCount();
   MessageBox.Show("Module Count: " + System.Convert.ToString(lCount));
}