Exemplo n.º 1
0
        static string CompleteOutputPath(OutputChoice outputType, string filePath)
        {
            #region -- Declare --
            string result = string.Empty;

            string fileName = Path.GetFileName(filePath);
            #endregion

            switch (outputType)
            {
                case OutputChoice.CurrentFolder:
                    result = fileName + "_New";
                    break;
                case OutputChoice.SpecifyFolder:
                    result = outputPath + "\\" + fileName;
                    break;
            }

            return result;
        }
Exemplo n.º 2
0
        static string CompleteOutputPath(OutputChoice outputType, string filePath)
        {
            #region -- Declare --
            string result = string.Empty;

            string fileName = Path.GetFileName(filePath);
            #endregion

            switch (outputType)
            {
            case OutputChoice.CurrentFolder:
                result = fileName + "_New";
                break;

            case OutputChoice.SpecifyFolder:
                result = outputPath + "\\" + fileName;
                break;
            }

            return(result);
        }