Пример #1
0
        public void MoveLocalFileToDone(FileListItem item)
        {
            string[] slashSplit      = item.FullPath.Split('\\');
            string   copyDestination = item.FullPath.Replace(slashSplit[slashSplit.Length - 1], @"Done\" + Guid.NewGuid() + ".dct");

            File.Move(item.FullPath, copyDestination);
        }
Пример #2
0
 public void MoveServerFileToLocal(FileListItem item)
 {
     string [] slashSplit = item.FullPath.Split('\\');
     string copyDestination = item.FullPath.Replace(slashSplit[slashSplit.Length - 1], @"Done\" + Guid.NewGuid() + ".dct");
     if (File.Exists(item.FullPath) == true && File.Exists(copyDestination) == false)
     {
         File.Copy(item.FullPath, copyDestination);
     }
     string moveDestination = YellowstonePathology.Properties.Settings.Default.LocalDictationFolder + slashSplit[slashSplit.Length - 1];
     if (File.Exists(item.FullPath) == true && File.Exists(moveDestination) == false)
     {
         File.Move(item.FullPath, moveDestination);
     }
 }
Пример #3
0
        public void MoveServerFileToLocal(FileListItem item)
        {
            string [] slashSplit      = item.FullPath.Split('\\');
            string    copyDestination = item.FullPath.Replace(slashSplit[slashSplit.Length - 1], @"Done\" + Guid.NewGuid() + ".dct");

            if (File.Exists(item.FullPath) == true && File.Exists(copyDestination) == false)
            {
                File.Copy(item.FullPath, copyDestination);
            }
            string moveDestination = YellowstonePathology.Business.Properties.Settings.Default.LocalDictationFolder + slashSplit[slashSplit.Length - 1];

            if (File.Exists(item.FullPath) == true && File.Exists(moveDestination) == false)
            {
                File.Move(item.FullPath, moveDestination);
            }
        }
Пример #4
0
 public void MoveLocalFileToDone(FileListItem item)
 {
     string[] slashSplit = item.FullPath.Split('\\');
     string copyDestination = item.FullPath.Replace(slashSplit[slashSplit.Length - 1], @"Done\" + Guid.NewGuid() + ".dct");
     File.Move(item.FullPath, copyDestination);
 }