예제 #1
0
 private void OnStopScenarioOrder(Object sender)
 {
     if (player != null)
     {
         Trace.WriteDebug("Libération du thread ScenarioPlayer");
         player.Dispose();
         player = null;
     }
 }
예제 #2
0
 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");
     }
 }
예제 #3
0
 public ScenarioManager()
 {
     player = null;
     //On s'enregistre aux événements
     Register();
 }