public void DisconnectFromServer() { if (!Connection.Connected) { return; } _updateTimer.Stop(); SoundEngine.StopAllChannels(); Connection.Close(); Interface = null; SoundEngine = null; ResourceManager = null; StateManager = null; Map = null; ATOMs = null; ScreenObjects = null; IconAppearances = null; MainWindow.Show(); }