public async Task DoExport(ISequence sequence, string outFormat, IProgress <ExportProgressStatus> progress = null) { string fileType; _exporting = true; _cancelling = false; if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType))) { if (_writers.TryGetValue(fileType, out _output)) { _generator = new SequenceIntervalGenerator(UpdateInterval, sequence); //WriteControllerInfo(sequence); await Task.Factory.StartNew(() => ProcessExport(progress)); } } }
public void DoExport(ISequence sequence, string outFormat) { string fileType; _exporting = true; _cancelling = false; if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType))) { if (_writers.TryGetValue(fileType, out _output)) { _generator = new SequenceIntervalGenerator(UpdateInterval, sequence); WriteControllerInfo(sequence); Task.Factory.StartNew(ProcessExport); } } }
public async Task DoExport(ISequence sequence, string outFormat, bool enableCompression, IProgress <ExportProgressStatus> progress = null, bool matchAudioName = false) { string fileType; _exporting = true; _cancelling = false; if ((sequence != null) && (_exportFileTypes.TryGetValue(outFormat, out fileType))) { if (_writers.TryGetValue(outFormat, out _output)) { if (_output.CanCompress) { _output.EnableCompression = enableCompression; } _generator = new SequenceIntervalGenerator(UpdateInterval, sequence); //WriteControllerInfo(sequence); await Task.Factory.StartNew(() => ProcessExport(progress, matchAudioName)); } } }