예제 #1
0
파일: Program.cs 프로젝트: sjmercer65/bio
        /// <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);
        }
예제 #2
0
파일: Program.cs 프로젝트: cpatmoore/bio
        /// <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;
        }