public void ConnectionFailed()
{
if (this.Dispatcher != System.Windows.Threading.Dispatcher.CurrentDispatcher)
{
this.Dispatcher.Invoke(new Action(ConnectionFailed));
}
else
{
GameRunning = false;
SimulationRunning = false;
SelfDestructRunning = false;
plyr.Stop();
MessageBox.Show("Connection to server lost.", "Big Red Button of Death!", MessageBoxButton.OK, MessageBoxImage.Hand);
ConnectionStarted = false;
}
}