public void ExtractDataThread()
        {
            // decrypt file
            string filename = KiesEncryption.Decrypt(ExtractDataFrom, BlockExtracted);

            // interprate XML

            if (File.Exists(filename) && !File.Exists(ExtractDataTo))
            {
                File.Move(filename, ExtractDataTo);
                KiesCompression.Decompress(new FileInfo(ExtractDataTo));
            }
        }
Exemple #2
0
        public override void ExtractData(string fromFile, string toPath, IWin32Window owner)
        {
            // decrypt file
            string filename = KiesEncryption.Decrypt(fromFile);
            // interprate XML

            string destinationFilename = Path.Combine(toPath, "memos.xml");

            if (File.Exists(filename) && !File.Exists(destinationFilename))
            {
                if (!Directory.Exists(toPath))
                {
                    Directory.CreateDirectory(toPath);
                }

                File.Move(filename, destinationFilename);
            }
        }