private void OnStopScenarioOrder(Object sender) { if (player != null) { Trace.WriteDebug("Libération du thread ScenarioPlayer"); player.Dispose(); player = null; } }
private void OnStartScenarioOrder(Object sender) { if (player == null) { Trace.WriteDebug("Starting Scenario"); player = new ScenarioPlayer(); } else { Trace.WriteInfo("Une scenario est en cours de lecture"); } }
public ScenarioManager() { player = null; //On s'enregistre aux événements Register(); }