public virtual void Copy() { var ii = new ImageOperator(); var selectFoto = new SelectFotoDialogView(); var destinationDir = new DirectoryInfo("C:\\Temp\\2"); if ((bool)selectFoto.ShowDialog()) { var dirList = new List <string>(); if ((bool)selectFoto.PhotoUnInstallation) { dirList.Add("Фото_демонтажа"); } if ((bool)selectFoto.PhotoInstallation) { dirList.Add("Фото_монтажа"); } if ((bool)selectFoto.PhotoConnection) { dirList.Add("Фото_подключения"); } if ((bool)selectFoto.PhotoRepairs) { dirList.Add("Фото_ремонта"); } if ((bool)selectFoto.PhotoLight) { dirList.Add("Фото_свет"); } ii.CopyByNumbers(DUFilesDir, destinationDir, UNIUs, dirList, true, false, true); } }
public virtual void Copy() { var ii = new ImageOperator(); var destinationDir = new DirectoryInfo(ResultPath); var dirList = new List <string>(); if (UnInstallationFolder) { dirList.Add("Фото_демонтажа"); } if (InstallationFolder) { dirList.Add("Фото_монтажа"); } if (ConnectionFolder) { dirList.Add("Фото_подключения"); } if (RepairsFolder) { dirList.Add("Фото_ремонта"); } if (LightFolder) { dirList.Add("Фото_свет"); } WindowService.Hide(); SplashScreenService.ShowSplashScreen(); ii.CopyByNumbers(SourceDir, destinationDir, UNIUs, dirList, RenameToSubdirs, CopyToSubdirs, OverlayText); SplashScreenService.HideSplashScreen(); WindowService.Close(); }
public void CopyTo() { ImageOperator io = new ImageOperator(); var inp = new DirectoryInfo("Z:\\DU_files"); var outp = new DirectoryInfo("c:\\temp\\2019-09-18 87 ДУ"); var subd = new List <string>() { "Фото_свет" }; var numbers = new List <string>() { "03100ДУ801063", "03100ДУ801065", "03100ДУ801080", "03100ДУ801149", "03100ДУ801172", "03100ДУ801198", "03110ДУ801280", "03110ДУ801281", "03110ДУ801288", "03110ДУ801290", "03110ДУ801291", "03110ДУ801292", "03110ДУ801293", "03120ДУ801037", "03120ДУ801044", "03120ДУ801088", "03120ДУ801091", "03120ДУ801109", "03120ДУ801116", "03120ДУ801117", "03120ДУ801118", "03120ДУ801119", "03120ДУ801136", "03120ДУ801137", "03120ДУ801150", "03120ДУ801151", "03120ДУ801156", "03120ДУ801174", "03120ДУ801211", "03120ДУ801212", "03120ДУ801215", "03120ДУ801231", "03120ДУ801307", "03130ДУ801128", "03130ДУ801130", "03130ДУ801155", "03130ДУ801183", "03150ДУ801056", "03150ДУ801109", "03150ДУ801112", "03150ДУ801113", "03150ДУ801114", "03150ДУ801238", "03150ДУ801257", "03150ДУ801261", "03150ДУ801272", "03150ДУ801275", "03150ДУ801276", "03150ДУ801277", "03150ДУ801279", "03150ДУ801281", "03150ДУ801282", "03150ДУ801286", "03150ДУ801289", "03150ДУ801290", "03150ДУ801291", "03150ДУ801524", "03150ДУ801525", "03150ДУ801535", "03160ДУ801213", "03160ДУ801215", "03160ДУ801227", "03160ДУ801239", "03160ДУ801242", "03160ДУ801243", "03160ДУ801244", "03160ДУ801297", "03160ДУ801340", "03160ДУ801415", "03160ДУ801416", "03160ДУ801434", "03170ДУ801114", "03170ДУ801146", "03170ДУ801147", "03170ДУ801306", "03170ДУ801312", "03170ДУ801319", "03180ДУ801316", "09140ДУ800012", "09140ДУ800029", "09140ДУ800017", "09140ДУ800037", "09140ДУ800040", "09140ДУ800038", "09140ДУ800047", "09140ДУ800048", "09140ДУ800066" }; io.CopyByNumbers(inp, outp, numbers, subd, false, false, true); }