SaveDS Example for C#
//This example uses the predefined variable “SaveDlg1” of
type “SaveFileDialog” from “.NET Framework”.
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestSaveDS ( )
{
short nRet = 0;
//save a Data Set
LEADDICOM1.EnableMethodErrors
= false;
SaveDlg1.Filter = "DICOM Data Set|*.dic";
SaveDlg1.ShowDialog();
if (SaveDlg1.FileName != "")
{
nRet = LEADDICOM1.SaveDS(SaveDlg1.FileName,
0);
if (nRet != (short)LTDicomKernelLib.DicomErrorCodes.DICOM_SUCCESS)
MessageBox.Show("Error
" + System.Convert.ToString(nRet) + " saveing file!");
}
LEADDICOM1.EnableMethodErrors
= true;
}