private void Initialize(SequenceProgram program) { if (Mode == EngineMode.Asynchronous) { InitializeForAsynchronous(program); } else { if (program.EventSequences.Count == 0) { throw new Exception("Cannot execute a program that has no sequences."); } CurrentObject = program; _useSequencePluginData = CurrentObject.UseSequencePluginData; } }