void ServiceAdmin_Error(object sender, Leadtools.Dicom.Server.Admin.ErrorEventArgs e)
 {
     if (null != ServerError)
     {
         ServerError(sender, e);
     }
 }
            void ServiceManager_ServerError(object sender, Leadtools.Dicom.Server.Admin.ErrorEventArgs e)
            {
               if ( ( null != e.Error ) && ( e.Error is BadImageFormatException ) )
               {
                  string demoVersoin   = "32";
                  string addInsVersion = "64";
                  
                  string msg = 
                    "Error loading [{0}].\n\n" + 
                    "This {1}-bit {3} process cannot load {2}-bit AddIn dlls, so the AddIn options can not be displayed.  " +
                    "Please use the {2}-bit version of the {3} to view the AddIn options.\n\n" + 
                    "Note:\n" +
                    "If you prefer to use the {1}-bit version of the AddIn dlls you can delete the current service and reinstall it from this {3}:\n" + 
                    "* To delete the service, click on 'Delete Server' button from the Workstation Listener Service Manager.\n" + 
                    "* To install a new service, click on 'Add Server' and enter the service information -or leave the defaults- in the dialog then click ok.\n" ;

                  string message = string.Empty;

                   if ( DemosGlobal.Is64Process ( ) )
                   {
                      demoVersoin   = "64";
                      addInsVersion = "32";
                   }
                   else
                   {
                      demoVersoin   = "32";
                      addInsVersion = "64";
                   }
                   
                   message = string.Format(msg, (e.Error as BadImageFormatException).FileName, demoVersoin, addInsVersion, Messager.Caption );
                   
                   ThreadSafeMessager.ShowWarning (  message ) ;
               }
               else
               {
                  ThreadSafeMessager.ShowError (  e.Error.Message ) ;
               }
            }
示例#3
0
 void ServiceAdmin_Error(object sender, Leadtools.Dicom.Server.Admin.ErrorEventArgs e)
 {
     //TODO
     MessageBox.Show(e.Error.Message);
 }