Beispiel #1
0
        public void SaveConvertedData(string targetFileName)
        {
            TargetFileName = CheckFileFormat(targetFileName) ? targetFileName : throw new ArgumentException(targetFileName);
            var targetFormatManager = FormatManagerFactory <T> .CreateFormatManager(TargetFormat);

            targetFormatManager.SaveFile(Data, targetFileName);
        }
Beispiel #2
0
        public FileFormatConventer(string sourceFileName)
        {
            SourceFileName = CheckFile(sourceFileName) ? sourceFileName : throw new ArgumentException(sourceFileName);

            sourceFormatManager = FormatManagerFactory <T> .CreateFormatManager(SourceFormat);

            Data = SetData();
        }