Example #1
0
        protected override void OnReceive(DicomExceptionCode error, DicomPduType pduType, IntPtr buffer, int bytes)
        {
            // Uncomment the lines below to log the OnReceive events
            //if ((_mainForm != null) && (_mainForm._mySettings._settings.logLowLevel))
            //{
            //   string sMsg =
            //      _sNewlineTab + "error:\t" + error.ToString() +
            //      _sNewlineTab + "pduType:\t" + pduType.ToString() +
            //      _sNewlineTab + "bytes:\t" + bytes.ToString();

            //   _mainForm.LogText("OnReceive", sMsg, System.Drawing.Color.Green);
            //}
            base.OnReceive(error, pduType, buffer, bytes);
        }
Example #2
0
 // You can receive any of the events below as well
 public override void OnBeforeSend(DicomClient Client, DicomExceptionCode error, DicomPduType type, int length)
 {
     // View or change parameters
     base.OnBeforeSend(Client, error, type, length);
 }