예제 #1
0
        public ImagesToVideoDialog(Window owner, IEnumerable <MediaItemM> items, OnSuccess onSuccess)
        {
            InitializeComponent();

            _items = items.ToArray();
            var firstMi  = _items.First();
            var fileName = IOExtensions.GetNewFileName(firstMi.Folder.FullPath, firstMi.FileName + ".mp4");

            Owner           = owner;
            _inputListPath  = Path.GetTempPath() + "PictureManagerImagesToVideo.list";
            _outputFilePath = IOExtensions.PathCombine(firstMi.Folder.FullPath, fileName);
            _outputFileName = fileName;
            _outputFolder   = firstMi.Folder;
            _onSuccess      = onSuccess;
        }