FindModule Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestFindModule ( )
{
   short nRet = 0;
   LEADDICOM1.EnableMethodErrors = false;
   nRet = LEADDICOM1.FindModule((int)LTDICLib.DicomModuleConstants.DICOM_MODULE_NM_TOMO_ACQUISITION);
   if (nRet != 0)
      MessageBox.Show("Not Found");
   else
   {
      LEADDICOM1.GetInfoDS();
      LEADDICOM1.FindModuleIOD (LEADDICOM1.InfoClass, (int)LTDICLib.DicomModuleConstants.DICOM_MODULE_NM_TOMO_ACQUISITION);
      MessageBox.Show("Found Module " + LEADDICOM1.get_CurrentIOD().Name);
   }
   LEADDICOM1.EnableMethodErrors = true;
}