/// <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 }
/// <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(); }
/// <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(); }
private void MainGame_Exiting(object sender, EventArgs e) { (_listener as EventListener).Exit(); HotelEventManager.Stop(); }
/// <summary> /// Stopping the simulation from running new events /// </summary> private void _stopSimulation() { _timer.Stop(); HotelEventManager.Stop(); }
/// <summary> /// Adaptor Method that calls HotelEvent.Manager.Stop(); /// </summary> public void Stop_Events() { HotelEventManager.Stop(); }