private void HandlerServerErrorEvent(object sender, ServerErrorEventInfo e)
        {
            if (e.info == "Connection to server has been served")
            {
                Action action = () => this.Show();

                if (InvokeRequired)
                {
                    Invoke(action);
                }
                else
                {
                    action();
                }
            }

            MessageBox.Show(e.info, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        private void ServerErrorEventHandler(object handler, ServerErrorEventInfo e)
        {
            if (e.info != "Connection to server has been served")
            {
                return;
            }

            //don't ask, don't touch

            Action action = () =>
            {
                CloseConnection();
            };

            if (InvokeRequired)
            {
                Invoke(action);
            }
            else
            {
                action();
            }
        }