void WebAddin_AfterConnect(object sender, AfterConnectEventArgs e) { if (e.Error != DicomExceptionCode.Success) { //get some information about the error } }
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); } }
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)); } }
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); }
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); }
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); }); }
void _find_AfterConnect(object sender, AfterConnectEventArgs e) { }