InsertModule Example for C#
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestInsertModule ( )
{
short nRet = 0;
LEADDICOM1.EnableMethodErrors
= false;
LEADDICOM1.GetInfoDS();
nRet = LEADDICOM1.InsertModule((int)LTDICLib.DicomModuleConstants.DICOM_MODULE_LUT_IDENTIFICATION,
true);
if (nRet != 0)
MessageBox.Show("Error Inserting Module!");
else
{
nRet = LEADDICOM1.FindModuleIOD(LEADDICOM1.InfoClass, LEADDICOM1.get_CurrentModule().Module);
MessageBox.Show("Inserted Module " + LEADDICOM1.get_CurrentIOD().Name);
}
}