Beispiel #1
0
 protected override void OnSequenceStarted(SequenceStartedEventArgs e)
 {
     _dataSource.ContextName = Name;
     _dataSource.SetSequence(Sequence);
     _dataSource.Start();
     base.OnSequenceStarted(e);
 }
Beispiel #2
0
        protected override void OnSequenceStarted(SequenceStartedEventArgs e)
        {
            if (!(Sequence is ScriptSequence)) throw new InvalidOperationException("Attempt to compile a non-script sequence.");

            Sequence.SequenceData.EffectData.Clear();

            ScriptCompiler compiler = new ScriptCompiler();
            compiler.Compile((ScriptSequence) Sequence);

            OnMessage(new ExecutorMessageEventArgs(Sequence, string.Join(Environment.NewLine, compiler.Errors)));

            if (!compiler.HasErrors) {
                if (!_CompileOnly(e)) {
                    _scriptHost = compiler.ScriptHost;
                    _StartScript();
                }
            }
            else {
                throw new Exception("Script did not compile.");
            }

            base.OnSequenceStarted(e);
        }
Beispiel #3
0
 private void _ProgramExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     OnSequenceStarted(e);
 }
Beispiel #4
0
 protected virtual void OnSequenceStarted(SequenceStartedEventArgs e)
 {
     if (SequenceStarted != null) {
         SequenceStarted(this, e);
     }
 }
Beispiel #5
0
 protected void context_SequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     timerPlaying.Start();
     _TimingSource = e.TimingSource;
     updateButtonStates();
 }
 protected void context_SequenceStarted(object sender, SequenceStartedEventArgs e)
 {
 }
Beispiel #7
0
 private void _SequenceExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     DataSource.SetSequence(_sequenceExecutor.Sequence);
     DataSource.Start();
     OnSequenceStarted(e);
 }
Beispiel #8
0
 private void _sequenceExecutor_SequenceReStarted(object sender, SequenceStartedEventArgs e)
 {
     CurrentEffects.Reset();
     OnSequenceReStarted(e);
 }
Beispiel #9
0
 private void _SequenceExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     CurrentEffects.Reset();
     OnContextStarted(EventArgs.Empty);
     OnSequenceStarted(e);
 }
Beispiel #10
0
 protected virtual void OnSequenceReStarted(SequenceStartedEventArgs e)
 {
     //_ResetElementStates();
     if (SequenceReStarted != null)
     {
         SequenceReStarted(this, e);
     }
 }
Beispiel #11
0
 private void _sequenceExecutor_SequenceReStarted(object sender, SequenceStartedEventArgs e)
 {
     OnSequenceReStarted(e);
 }
Beispiel #12
0
        void _programExecutor_SequenceStarted(object sender, SequenceStartedEventArgs e)
        {
            _dataSource = _programExecutor.GetCurrentSequenceData();
            _timingSource = _programExecutor.GetCurrentSequenceTiming();

            //Once a sequence is executed with this present, it can be saved and this
            //line commented out.  The sequence file will have it at that point.
            //****
            //_AddPreFilterToSequence();
            //****

            if(SequenceStarted != null) {
                SequenceStarted(this, e);
            }
        }
Beispiel #13
0
 private bool _CompileOnly(SequenceStartedEventArgs e)
 {
     return e.EndTime < e.StartTime;
 }