Exemple #1
0
        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));
                }
            }
        }
Exemple #2
0
        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);
                }
            }
        }
Exemple #3
0
        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));
                }
            }
        }