/// <summary>
        /// Gets the error message corresponding to the specified error code associated with the FTP transfer Windows Command File.
        /// </summary>
        /// <param name="errorCode">The error code that was returned from the FTP transfer Windows Command File.</param>
        /// <returns>The error message corresponding to the specified error code.</returns>
        internal static string GetErrorMessage(FTPErrorCode errorCode)
        {
            // The error message corresponding to the error code.
            string errorMessage;

            switch (errorCode)
            {
            case FTPErrorCode.Success:
                errorMessage = Resources.FTPErrorCodeSuccess;
                break;

            case FTPErrorCode.NcFTPCouldNotConnectToRemoteHost:
                errorMessage = Resources.FTPErrorCodeNcFTPCouldNotConnectToRemoteHost;
                break;

            case FTPErrorCode.NcFTPCouldNotConnectToRemoteHostTimedOut:
                errorMessage = Resources.FTPErrorCodeNcFTPCouldNotConnectToRemoteHostTimedOut;
                break;

            case FTPErrorCode.NcFTPTransferFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPTransferFailed;
                break;

            case FTPErrorCode.NcFTPTransferFailedTimedOut:
                errorMessage = Resources.FTPErrorCodeNcFTPTransferFailedTimedOut;
                break;

            case FTPErrorCode.NcFTPDirectoryChangeFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPDirectoryChangeFailed;
                break;

            case FTPErrorCode.NcFTPDirectoryChangeFailedTimedOut:
                errorMessage = Resources.FTPErrorCodeNcFTPDirectoryChangeFailedTimedOut;
                break;

            case FTPErrorCode.NcFTPMalformedURL:
                errorMessage = Resources.FTPErrorCodeNcFTPMalformedURL;
                break;

            case FTPErrorCode.NcFTPUsageError:
                errorMessage = Resources.FTPErrorCodeNcFTPUsageError;
                break;

            case FTPErrorCode.NcFTPLibraryInitializationFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPLibraryInitializationFailed;
                break;

            case FTPErrorCode.NcFTPSessionInitializationFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPSessionInitializationFailed;
                break;

            case FTPErrorCode.FindStrNoMatchFound:
                errorMessage = Resources.FTPErrorCodeFindStrNoMatchFound;
                break;

            case FTPErrorCode.FindStrIncorrectSyntax:
                errorMessage = Resources.FTPErrorCodeFindStrIncorrectSyntax;
                break;

            case FTPErrorCode.SystemException:
                errorMessage = Resources.FTPErrorCodeSystemException;
                break;

            case FTPErrorCode.PingError:
                errorMessage = Resources.FTPErrorCodePingError;
                break;

            case FTPErrorCode.PingCannotOpenPingReply:
                errorMessage = Resources.FTPErrorCodePingCannotOpenPingReply;
                break;

            case FTPErrorCode.PingInvalidPacketInformation:
                errorMessage = Resources.FTPErrorCodePingInvalidPacketInformation;
                break;

            case FTPErrorCode.PingNoReply:
                errorMessage = Resources.FTPErrorCodePingNoReply;
                break;

            case FTPErrorCode.FileNotFoundXML:
                errorMessage = Resources.FTPErrorCodeFileNotFoundXML;
                break;

            case FTPErrorCode.FileNotFoundHLP:
                errorMessage = Resources.FTPErrorCodeFileNotFoundHLP;
                break;

            case FTPErrorCode.FileNotFoundBoth:
                errorMessage = Resources.FTPErrorCodeFileNotFoundBoth;
                break;

            case FTPErrorCode.FileNotFoundSearchResults:
                errorMessage = Resources.FTPErrorCodeFileNotFoundSearchResults;
                break;

            case FTPErrorCode.NcFTPGetXMLFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPGetXMLFailed;
                break;

            case FTPErrorCode.NcFTPGetHLPFailed:
                errorMessage = Resources.FTPErrorCodeNcFTPGetHLPFailed;
                break;

            case FTPErrorCode.XCopyNoFilesFound:
                errorMessage = Resources.FTPErrorCodeXCopyNoFilesFound;
                break;

            case FTPErrorCode.XCopyCtrlC:
                errorMessage = Resources.FTPErrorCodeXCopyCtrlC;
                break;

            case FTPErrorCode.XCopyInitFailed:
                errorMessage = Resources.FTPErrorCodeXCopyInitFailed;
                break;

            case FTPErrorCode.XCopyDiskWriteError:
                errorMessage = Resources.FTPErrorCodeXCopyDiskWriteError;
                break;

            case FTPErrorCode.Undefined:
                errorMessage = Resources.FTPErrorCodeUndefined;
                break;

            default:
                errorMessage = Resources.FTPErrorCodeUnrecognized;
                break;
            }

            return(errorMessage);
        }
        /// <summary>
        /// Gets the error message corresponding to the specified error code associated with the FTP transfer Windows Command File.
        /// </summary>
        /// <param name="errorCode">The error code that was returned from the FTP transfer Windows Command File.</param>
        /// <returns>The error message corresponding to the specified error code.</returns>
        internal static string GetErrorMessage(FTPErrorCode errorCode)
        {
            // The error message corresponding to the error code.
            string errorMessage;

            switch (errorCode)
            {
                case FTPErrorCode.Success:
                    errorMessage = Resources.FTPErrorCodeSuccess;
                    break;
                case FTPErrorCode.NcFTPCouldNotConnectToRemoteHost:
                    errorMessage = Resources.FTPErrorCodeNcFTPCouldNotConnectToRemoteHost;
                    break;
                case FTPErrorCode.NcFTPCouldNotConnectToRemoteHostTimedOut:
                    errorMessage = Resources.FTPErrorCodeNcFTPCouldNotConnectToRemoteHostTimedOut;
                    break;
               case FTPErrorCode.NcFTPTransferFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPTransferFailed;
                    break;
               case FTPErrorCode.NcFTPTransferFailedTimedOut:
                    errorMessage = Resources.FTPErrorCodeNcFTPTransferFailedTimedOut;
                    break;
               case FTPErrorCode.NcFTPDirectoryChangeFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPDirectoryChangeFailed;
                    break;
                case FTPErrorCode.NcFTPDirectoryChangeFailedTimedOut:
                    errorMessage = Resources.FTPErrorCodeNcFTPDirectoryChangeFailedTimedOut;
                    break;
                case FTPErrorCode.NcFTPMalformedURL:
                    errorMessage = Resources.FTPErrorCodeNcFTPMalformedURL;
                    break;
                case FTPErrorCode.NcFTPUsageError:
                    errorMessage = Resources.FTPErrorCodeNcFTPUsageError;
                    break;
                case FTPErrorCode.NcFTPLibraryInitializationFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPLibraryInitializationFailed;
                    break;
                case FTPErrorCode.NcFTPSessionInitializationFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPSessionInitializationFailed;
                    break;
                case FTPErrorCode.FindStrNoMatchFound:
                    errorMessage = Resources.FTPErrorCodeFindStrNoMatchFound;
                    break;
                case FTPErrorCode.FindStrIncorrectSyntax:
                    errorMessage = Resources.FTPErrorCodeFindStrIncorrectSyntax;
                    break;
                case FTPErrorCode.SystemException:
                    errorMessage = Resources.FTPErrorCodeSystemException;
                    break;
                case FTPErrorCode.PingError:
                    errorMessage = Resources.FTPErrorCodePingError;
                    break;
                case FTPErrorCode.PingCannotOpenPingReply:
                    errorMessage = Resources.FTPErrorCodePingCannotOpenPingReply;
                    break;
                case FTPErrorCode.PingInvalidPacketInformation:
                    errorMessage = Resources.FTPErrorCodePingInvalidPacketInformation;
                    break;
                case FTPErrorCode.PingNoReply:
                    errorMessage = Resources.FTPErrorCodePingNoReply;
                    break;
                case FTPErrorCode.FileNotFoundXML:
                    errorMessage = Resources.FTPErrorCodeFileNotFoundXML;
                    break;
                case FTPErrorCode.FileNotFoundHLP:
                    errorMessage = Resources.FTPErrorCodeFileNotFoundHLP;
                    break;
                case FTPErrorCode.FileNotFoundBoth:
                    errorMessage = Resources.FTPErrorCodeFileNotFoundBoth;
                    break;
                case FTPErrorCode.FileNotFoundSearchResults:
                    errorMessage = Resources.FTPErrorCodeFileNotFoundSearchResults;
                    break;
                case FTPErrorCode.NcFTPGetXMLFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPGetXMLFailed;
                    break;
                case FTPErrorCode.NcFTPGetHLPFailed:
                    errorMessage = Resources.FTPErrorCodeNcFTPGetHLPFailed;
                    break;
                case FTPErrorCode.XCopyNoFilesFound:
                    errorMessage = Resources.FTPErrorCodeXCopyNoFilesFound;
                    break;
                case FTPErrorCode.XCopyCtrlC:
                    errorMessage = Resources.FTPErrorCodeXCopyCtrlC;
                    break;
                case FTPErrorCode.XCopyInitFailed:
                    errorMessage = Resources.FTPErrorCodeXCopyInitFailed;
                    break;
                case FTPErrorCode.XCopyDiskWriteError:
                    errorMessage = Resources.FTPErrorCodeXCopyDiskWriteError;
                    break;
                case FTPErrorCode.Undefined:
                    errorMessage = Resources.FTPErrorCodeUndefined;
                    break;
                default:
                    errorMessage = Resources.FTPErrorCodeUnrecognized;
                    break;
            }

            return errorMessage;
        }