Пример #1
0
        public string BringFileInformation()
        {
            string strResult;

            switch (_strFileInfo)
            {
            case "-v":
            case "--v":
            case "/v":
            case "--version":
                strResult = "File Version : " + _objRepositoryFile.FetchVersionFromDB(_strFilePath);
                break;

            case "-s":
            case "--s":
            case "/s":
            case "--size":
                strResult = "File Size : " + Convert.ToString(_objRepositoryFile.FetchSizeFromDB(_strFilePath));
                break;

            default:
                strResult = "Wrong Input";
                break;
            }

            return(strResult);
        }