Пример #1
0
 protected override void OnSequenceStarted(SequenceStartedEventArgs e)
 {
     _dataSource.ContextName = Name;
     _dataSource.SetSequence(Sequence);
     _dataSource.Start();
     base.OnSequenceStarted(e);
 }
Пример #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);
        }
Пример #3
0
 private void _ProgramExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     OnSequenceStarted(e);
 }
Пример #4
0
 protected virtual void OnSequenceStarted(SequenceStartedEventArgs e)
 {
     if (SequenceStarted != null) {
         SequenceStarted(this, e);
     }
 }
Пример #5
0
 protected void context_SequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     timerPlaying.Start();
     _TimingSource = e.TimingSource;
     updateButtonStates();
 }
Пример #6
0
 protected void context_SequenceStarted(object sender, SequenceStartedEventArgs e)
 {
 }
Пример #7
0
 private void _SequenceExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     DataSource.SetSequence(_sequenceExecutor.Sequence);
     DataSource.Start();
     OnSequenceStarted(e);
 }
Пример #8
0
 private void _sequenceExecutor_SequenceReStarted(object sender, SequenceStartedEventArgs e)
 {
     CurrentEffects.Reset();
     OnSequenceReStarted(e);
 }
Пример #9
0
 private void _SequenceExecutorSequenceStarted(object sender, SequenceStartedEventArgs e)
 {
     CurrentEffects.Reset();
     OnContextStarted(EventArgs.Empty);
     OnSequenceStarted(e);
 }
Пример #10
0
 protected virtual void OnSequenceReStarted(SequenceStartedEventArgs e)
 {
     //_ResetElementStates();
     if (SequenceReStarted != null)
     {
         SequenceReStarted(this, e);
     }
 }
Пример #11
0
 private void _sequenceExecutor_SequenceReStarted(object sender, SequenceStartedEventArgs e)
 {
     OnSequenceReStarted(e);
 }
Пример #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);
            }
        }
Пример #13
0
 private bool _CompileOnly(SequenceStartedEventArgs e)
 {
     return e.EndTime < e.StartTime;
 }