InitCS Example for C#
//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestInitCS ( )
{
string Out = null;
//create a data set as a command set
LEADDICOM1.InitCS((short)LTDICLib.DicomCommandSetConstants.COMMAND_C_STORE,
true);
//gets information about the command set
LEADDICOM1.GetInfoCS();
Out = "Command: " + System.Convert.ToString(LEADDICOM1.InfoCommand);
Out = Out + "\r";
Out = Out + "Request: " + System.Convert.ToString(LEADDICOM1.InfoRequest);
MessageBox.Show(Out);
}