private void CopyStorageItemToDir(StorageItemRow pStorageItem, string pTargetDir)
        {
            StorageItemRow sItem = pStorageItem;

            if (sItem.IsFileExist())
            {
                string sourceFileName = Path.GetFileName(sItem.FullPath);
                string destFile       = Path.Combine(pTargetDir, sourceFileName);
                File.Copy(sItem.FullPath, destFile, true);
            }
            else if (sItem.IsDirectoryExist())
            {
                DirectoryInfo dirInfo = new DirectoryInfo(sItem.s_FullPath);

                String destDir = pTargetDir + Path.DirectorySeparatorChar + dirInfo.Name;
                CopyDirectory(sItem.s_FullPath, destDir);
                //string[] files = System.IO.Directory.GetFiles(sItem.s_FullPath);

                //string fileName;
                //string destFile;
                //foreach (string s in files)
                //{
                //    // Use static Path methods to extract only the file name from the path.
                //    fileName = System.IO.Path.GetFileName(s);
                //    destFile = System.IO.Path.Combine(pTargetDir, fileName);
                //    System.IO.File.Copy(s, destFile, true);
                //}
            }
        }
        private void FillLstFileEntry()
        {
            mLstFileEntry = new List <FileEntry>();
            int           itemsCount    = mListView.Items.Count;
            List <string> extensionList = new List <string>()
            {
                ".TXT", ".HTM", ".HTM", ".XML"
            };

            for (int index = 0; index < itemsCount; index++)
            {
                ListViewItem   item        = mListView.Items[index];
                StorageItemRow storageItem = (StorageItemRow)item.Tag;

                if (storageItem.IsFileExist())
                {
                    string file      = Path.GetFullPath(storageItem.s_FullPath);
                    string extension = storageItem.GetExtension();

                    if (extension.ToUpper().Equals(".PDF".ToUpper()))
                    {
                        mLstFileEntry.Add(new FileEntry(file, false, index, FileEntryType.PDF));
                    }

                    else if (extension.ToUpper().Equals(".DOCX".ToUpper()))
                    {
                        mLstFileEntry.Add(new FileEntry(file, false, index, FileEntryType.DOCX));
                    }
                    else if (extensionList.Contains(extension.ToUpper()))
                    {
                        mLstFileEntry.Add(new FileEntry(file, false, index, FileEntryType.TXT));
                    }
                }
            }
        }