BigRedButtonOfDeath.Forms.Form1.ConnectionFailed C# (CSharp) Method

ConnectionFailed() public method

public ConnectionFailed ( ) : void
return void
        public void ConnectionFailed()
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new Action(ConnectionFailed));
            }
            else
            {
                this.TopMost = false;
                MessageBox.Show("Connection to server was lost.", "The Big Red Button of Death!", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
                SetForConnection();
                this.TopMost = true;
               
            }
        }