Esempio n. 1
0
 public MySimulatorModel(ISimulatorClient c)
 {
     client = c;
     // Make a lock object.
     myLock      = new Object();
     connected   = false;
     firstRotate = true;
     TurnOffLocationFlags();
     // Set the status timer to act every 5 seconds.
     myStatusTimer = new System.Timers.Timer {
         Interval = 5000, AutoReset = true, Enabled = true
     };
     myStatusTimer.Elapsed += StatusTimerOnTimedEvent;
 }
Esempio n. 2
0
 public SimulatorController(IBuildingSecuritySessionStore sessionStore, ISimulatorClient simulationClient) : base(sessionStore)
 {
      _simulationClient = simulationClient;
 }