LoadDS Example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestLoadDS ( )
{
   short nRet = 0;
   //load a Data Set
   LEADDICOM1.EnableMethodErrors = false;
   nRet = LEADDICOM1.LoadDS("d:\\lead14\\dist\\images\\dicom\\image2.dic", 0);
   if (nRet != (short)LTDicomKernelLib.DicomErrorCodes.DICOM_SUCCESS)
      MessageBox.Show("Error " + System.Convert.ToString(nRet) + " loading file!");
   LEADDICOM1.EnableMethodErrors = true;
}