BigRedButtonOfDeath.Forms.Form1.ConnectionFailed C# (CSharp) 메소드

ConnectionFailed() 공개 메소드

public ConnectionFailed ( ) : void
리턴 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;
               
            }
        }