예제 #1
0
 /// <summary>
 /// UnloadContent will be called once per game and is the place to unload
 /// game-specific content.
 /// </summary>
 protected override void UnloadContent()
 {
     _elevator.Detach(_cleaner);
     _elevator.Detach(_cleaner2);
     HotelEventManager.Stop();
     // TODO: Unload any non ContentManager content here
 }
예제 #2
0
        /// <summary>
        ///     UnloadContent will be called once per game and is the place to unload
        ///     game-specific content.
        /// </summary>
        protected override void UnloadContent()
        {
            //unregister listeners
            HotelEventManager.Deregister(_checkInListener);
            HotelEventManager.Deregister(_checkOutListener);

            //stop HotelEventManager
            HotelEventManager.Stop();
            hotel.StopTimer();
        }
예제 #3
0
 /// <summary>
 /// Stop the simulation and go back to setting menu
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StopButton_Click(object sender, EventArgs e)
 {
     HotelEventManager.Stop();
     this.Hide();
     settings.Show();
 }
예제 #4
0
 private void MainGame_Exiting(object sender, EventArgs e)
 {
     (_listener as EventListener).Exit();
     HotelEventManager.Stop();
 }
예제 #5
0
 /// <summary>
 /// Stopping the simulation from running new events
 /// </summary>
 private void _stopSimulation()
 {
     _timer.Stop();
     HotelEventManager.Stop();
 }
예제 #6
0
 /// <summary>
 /// Adaptor Method that calls HotelEvent.Manager.Stop();
 /// </summary>
 public void Stop_Events()
 {
     HotelEventManager.Stop();
 }