Exemplo n.º 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);
        }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
 }