Пример #1
0
        //--------------------------------------------------------------------------------------------#

        /// <summary>
        /// Sets public variable 'fileFormat' enumerated
        /// current file format
        /// </summary>
        /// <param name="strFormat">file format after '.' as a string</param>
        public static void setFileFormat(string strFormat)
        {
            switch (strFormat.ToLower())
            {
            case STR_FORMAT_TXT:
                fileFormat = savageFileFormat = FileFormat_en.eTXT;
                break;

            case STR_FORMAT_DOC:
                fileFormat = savageFileFormat = FileFormat_en.eDOCX;
                break;

            case STR_FORMAT_DOCX:
                fileFormat = savageFileFormat = FileFormat_en.eDOCX;
                break;

            default:
                throw new FileFormatException();
            }
        }
Пример #2
0
 public static void setSaveAs(FileFormat_en saveAs)
 {
     savageFileFormat = saveAs;
 }