Example #1
0
 void WebAddin_AfterConnect(object sender, AfterConnectEventArgs e)
 {
     if (e.Error != DicomExceptionCode.Success)
     {
         //get some information about the error
     }
 }
Example #2
0
 private void find_AfterConnect(object sender, AfterConnectEventArgs e)
 {
     if (e.Error != DicomExceptionCode.Success)
     {
         throw new Leadtools.Dicom.Scu.Common.ClientConnectionException(Constants.Exception.ConnectionFailed,
                                                                        e.Error);
     }
 }
Example #3
0
 public void NotifyConnect(object sender, AfterConnectEventArgs eventArgs)
 {
     if (eventArgs.ReturnValue == ErrorCode.Success)
     {
         WriteInfo(sender, String.Format(">> Error: {0}", eventArgs.ReturnValue));
     }
     else
     {
         WriteWarning(sender, String.Format(">> Error: {0}", eventArgs.ReturnValue));
     }
 }
Example #4
0
        static void scu_AfterConnect(object sender, AfterConnectEventArgs e)
        {
            DicomConnection scu     = sender as DicomConnection;
            string          message = Utils.CONNECT_RESPONSE_RECEIVED;

            if (e.Error != DicomExceptionCode.Success)
            {
                message = string.Format(Utils.CONNECT_RESPONSE_RECEIVED_FAILURE, e.Error);
            }

            Utils.LogEvent(LogType.Information, MessageDirection.Input, message, DicomCommandType.Undefined, null, scu, null);
        }
Example #5
0
        void store_AfterConnect(object sender, AfterConnectEventArgs e)
        {
            StoreScu scu     = sender as StoreScu;
            string   message = CONNECT_RESPONSE_RECEIVED;

            if (e.Error != DicomExceptionCode.Success)
            {
                message = string.Format(CONNECT_RESPONSE_RECEIVED_FAILURE, e.Error);
            }

            LogEvent(LogType.Information, MessageDirection.Input, message, DicomCommandType.Undefined, null, scu, null);
        }
Example #6
0
        public void NotifyConnect(object sender, AfterConnectEventArgs eventArgs)
        {
            Gui.InvokeOnUiThread(() =>
            {
                if (eventArgs.ReturnValue == ErrorCode.Success)
                {
                    Gui.SetLogForeColor(Colors.LogDefaultColor);
                    WriteLogLine(LogLevel.Info, sender, $"<=  {eventArgs.ReturnValue}");
                    Gui.UpdateChannelStatus(ChannelStatusType.Connected);
                }
                else
                {
                    Gui.SetLogForeColor(Colors.LogErrorColor);
                    WriteLogLine(LogLevel.Error, sender, $"<=  {eventArgs.ReturnValue}");
                    Gui.UpdateChannelStatus(ChannelStatusType.Error);
                }

                Gui.UpdateLastError(eventArgs.ReturnValue);
            });
        }
Example #7
0
 void _find_AfterConnect(object sender, AfterConnectEventArgs e)
 {
 }