Exemplo n.º 1
0
        /// <summary>
        /// gets the usage message, if the FileFormatConverter class is available we can also write the
        /// available file extensions that we can parse and convert to otherwise just use static
        /// usage text
        /// </summary>
        /// <param name="ffc"></param>
        /// <returns></returns>
        private static string GetUsageMessage(FileFormatConverter ffc)
        {
            string usage = string.Empty;

            if (ffc != null)
            {
                usage  = Resources.UsageHelp;
                usage += Environment.NewLine;
                usage += Environment.NewLine;
                usage += String.Format("File extensions for parsing:\n{0}", ffc.ListOfExtensionsToParse());
                usage += Environment.NewLine;
                usage += Environment.NewLine;
                usage += String.Format("File extensions for conversion:\n{0}", ffc.ListOfExtensionsForConversion());
            }
            else
            {
                usage = Resources.UsageHelp;
            }

            return(usage);
        }
Exemplo n.º 2
0
        /// <summary>
        /// gets the usage message, if the FileFormatConverter class is available we can also write the
        /// available file extensions that we can parse and convert to otherwise just use static
        /// usage text
        /// </summary>
        /// <param name="ffc"></param>
        /// <returns></returns>
        private static string GetUsageMessage(FileFormatConverter ffc)
        {
            string usage = string.Empty;

            if (ffc != null)
            {
                usage = Resources.UsageHelp;
                usage += Environment.NewLine;
                usage += Environment.NewLine;
                usage += String.Format("File extensions for parsing:\n{0}", ffc.ListOfExtensionsToParse());
                usage += Environment.NewLine;
                usage += Environment.NewLine;
                usage += String.Format("File extensions for conversion:\n{0}", ffc.ListOfExtensionsForConversion());
            }
            else
            {
                usage = Resources.UsageHelp;
            }

            return usage;
        }