private void RemoveStatement(int statementId) { var statementDesc = Statements.Get(statementId); if (statementDesc == null) { return; } Realization.RemoveStatement(statementDesc); Statements.Remove(statementId); }
public override object Evaluate(Context context) { // read a field var myField = Fields.Get("SCENE_NAME"); // evaluate a statement var myStatement = Statements.Get("SCENE_STATEMENT"); myStatement.Evaluate(context); // evaluate your statement return(null); }
public override object Evaluate(Context context) { // read a field var myField = Fields.Get("AUDIO_NAME"); // evaluate a statement ==> C'est le retour de tous les blocs intérieurs var myStatement = Statements.Get("AUDIO_STATEMENT"); var ret = myStatement.Evaluate(context); // evaluate your statement eg. "DENON|" // if your block returns a value, simply `return myValue` // if your block is part of a statment, and another block runs after it, call var myBlocReturn = "SoundFile:" + myField + "@" + ret + base.Evaluate(context); return(myBlocReturn); }
public override object Evaluate(Context context) { // read a field var myField = Fields.Get("POWERPOINT_NAME"); // evaluate a statement var myStatement = Statements.Get("POWERPOINT_STATEMENT"); var ret = myStatement.Evaluate(context); // evaluate your statement eg. "DISPLAY1|DISPLAY2|DISPLAY3|DISPLAY4|" // if your block returns a value, simply `return myValue` // if your block is part of a statment, and another block runs after it, call var myBlocReturn = "PPTFile:" + myField + "@" + ret + base.Evaluate(context); return(myBlocReturn); }
public override object Evaluate(Context context) { // read a field var myField = Fields.Get("SCENEACTIONS_NAME"); // evaluate a statement var myStatement = Statements.Get("SCENEACTIONS_STATEMENT"); var ret = myStatement.Evaluate(context); // evaluate your statement eg. "VideoFile:intro.mp4@DISPLAY1|SoundFile:music.mp3@DENON|" // ICI on récupère l'esemble des actions à lancer dans le statement du bloc en cours // Thread(action1) // Thread(action2) // ... // Thread(actionn) // action1.join() action2.join() ... actionn.join() // Et on passe au suivant ... // if your block returns a value, simply `return myValue` // if your block is part of a statment, and another block runs after it, call base.Evaluate(context); return(null); }
public void GetUnknown() { var statement = new Statements(); Assert.AreEqual(Statements.Tables, statement.Get(SchemaTypes.Unknown)); }
public void GetStoredProcedures() { var statement = new Statements(); Assert.AreEqual(Statements.StoredProcedures, statement.Get()); Assert.AreEqual(Statements.StoredProcedures, statement.Get(SchemaTypes.StoredProcedure)); }