public void RunServer()
        {
            try
            {
                MWL_Server = new DicomServer();
            }
            catch (Exception ex)
            {
                Log.Fatal("Failed to create MWL_Server!" + ex.Message);
                return;
            }

            try
            {
                MWL_Server.VerifyReceived     += MWL_Server_VerifyReceived;
                MWL_Server.AssociationRequest += MWL_Server_AssociationRequest;
                MWL_Server.QueryReceived      += MWL_Server_QueryReceived;
            }
            catch (Exception ex)
            {
                Log.Fatal("Failed to connect DicomServer events!" + ex.Message);
            }

            try
            {
                MWL_Server.Listen(dicomserverconfig.Portnumber, dicomserverconfig.IpAddress);
                Log.Debug($"MWL server is listening on port {dicomserverconfig.Portnumber}.");
            }
            catch (Exception ex)
            {
                Log.Fatal("Failed to set listening port at portnumber:" + dicomserverconfig.Portnumber
                          + " on interface:" + dicomserverconfig.IpAddress + ". " + ex.Message);
            }

            //Put the following line back in to enable native DicomObjects logging
            //DicomObjects.DicomGlobal.LogToFile("dicom_log_files", 0x63);

            DicomGlobal.EventLogLevel = (DicomObjects.Enums.LogLevel) 0x63;       //0x3F; //dec 63
            DicomGlobal.LogEvent     += DicomGlobal_LogEvent;
            Log.Debug("MWL_Server started!");
        }