コード例 #1
0
ファイル: Sequence.cs プロジェクト: stewmc/vixen
 protected Sequence(Sequence original)
 {
     FilePath = original.FilePath;
     InsertDataListener = new InsertDataListenerStack();
     InsertDataListener += _DataListener;
     Data = new DataStreams(original.Data);
     _sequenceFilterStreamId = original._sequenceFilterStreamId;
     TimingProvider = new TimingProviders(this, original.TimingProvider);
     RuntimeBehaviors = Modules.ModuleManagement.GetAllRuntimeBehavior();
     ModuleDataSet = (ModuleLocalDataSet)original.ModuleDataSet.Clone();
     Length = original.Length;
 }
コード例 #2
0
ファイル: Sequence.cs プロジェクト: stewmc/vixen
 protected Sequence()
 {
     FilePath = "";
     InsertDataListener = new InsertDataListenerStack();
     InsertDataListener += _DataListener;
     Data = new DataStreams();
     _sequenceFilterStreamId = Data.CreateStream("SequenceFilter");
     TimingProvider = new TimingProviders(this);
     RuntimeBehaviors = Modules.ModuleManagement.GetAllRuntimeBehavior();
     ModuleDataSet = new ModuleLocalDataSet();
     _media = new MediaCollection();
 }
コード例 #3
0
        //*** only do this if the user agrees to do it
        private void _UpdateTimingSourceToSelectedMedia()
        {
            //This sucks so bad, I am so sorry.  Magic strings and everything, good god.
            TimingProviders timingProviders = new TimingProviders(_sequence);
            string[] mediaTimingSources;

            try
            {
                mediaTimingSources = timingProviders.GetAvailableTimingSources("Media");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                return;
            }

            if (mediaTimingSources.Length > 0)
            {
                SelectedTimingProvider mediaTimingProvider = new SelectedTimingProvider("Media", mediaTimingSources.First());
                _sequence.SelectedTimingProvider = mediaTimingProvider;
                _SetTimingToolStripEnabledState();
            }
        }
コード例 #4
0
ファイル: Sequence.cs プロジェクト: Jchuchla/vixen
 public ITiming GetTiming()
 {
     TimingProviders timingProviders = new TimingProviders(this);
     return timingProviders.GetTimingSource(SelectedTimingProvider);
 }
コード例 #5
0
        //*** only do this if the user agrees to do it
        private void _UpdateTimingSourceToSelectedMedia()
        {
            //This sucks so bad, I am so sorry.  Magic strings and everything, good god.
            TimingProviders timingProviders = new TimingProviders(_sequence);
            string[] mediaTimingSources;

            try
            {
                mediaTimingSources = timingProviders.GetAvailableTimingSources("Media");
            }
            catch (Exception ex)
            {
                //messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible)
                MessageBoxForm.msgIcon = SystemIcons.Error; //this is used if you want to add a system icon to the message form.
                var messageBox = new MessageBoxForm(ex.Message, @"Error parsing time", false, false);
                messageBox.ShowDialog();
                return;
            }

            if (mediaTimingSources.Length > 0)
            {
                SelectedTimingProvider mediaTimingProvider = new SelectedTimingProvider("Media", mediaTimingSources.First());
                _sequence.SelectedTimingProvider = mediaTimingProvider;
                _SetTimingToolStripEnabledState();
            }
        }