NetReceiveCEchoResponse Example for Delphi
procedure TForm1.LEADDicomNet1NetReceiveCEchoResponse(ASender: TObject;
hNet: Integer; nPresentationID, nMessageID: Smallint;
const pszClass: WideString; nStatus: Integer);
var
NewNode: TTreeNode;
nRet: Integer;
strName: String;
begin
NewNode:= TreeView1.Items.Add(TreeView1.Selected, 'Command Set - ' + 'C-ECHO-RESPONSE');
NewNode.MakeVisible();
TreeView1.Items.AddChild(NewNode, 'Presentation ID: ' + IntToStr(nPresentationID));
TreeView1.Items.AddChild(NewNode, 'Message ID: ' + IntToStr(nMessageID));
nRet:= LEADDicomDS1.FindUID (pszClass);
if(nRet = 0)then
begin
strName:= LEADDicomDS1.DefaultInterface.Get_CurrentUID().Name;
TreeView1.Items.AddChild(NewNode, 'Affected SOP Class: ' + strName + ' - ' + pszClass);
end
else
TreeView1.Items.AddChild(NewNode, 'Affected SOP Class: ' + pszClass);
TreeView1.Items.AddChild(NewNode, 'Status: ' + IntToStr(nStatus));
end;