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);
            }
        }
示例#2
0
        public static void SelectPhotoDialog(IEnumerable <string> UNIUs, DirectoryInfo DUFilesDir)
        {
            var selectFoto = SelectFotoDialogViewModel.Create(UNIUs, DUFilesDir);
            var d          = new SelectFotoDialogView
            {
                DataContext = selectFoto
            };

            d.ShowDialog();
        }