Exemplo n.º 1
0
        private void client_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e)
        {
            int    errorCode = e.errorCode;
            string message   = RdpClientErrorMessages.ToFatalErrorMessage(errorCode);
            string finalMsg  = String.Format("There was a fatal error returned from the RDP Connection, details:\n\nError Code:{0}\n\nError Description:{1}", errorCode, message);

            MessageBox.Show(finalMsg);
            Logging.Fatal(finalMsg);
        }
Exemplo n.º 2
0
        private void client_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e)
        {
            int    errorCode = e.errorCode;
            string message   = RdpClientErrorMessages.ToFatalErrorMessage(errorCode);
            string finalMsg  = string.Format("There was a fatal error returned from the RDP connection \"{0}\".", errorCode, message);

            Log.Fatal(errorCode.ToString());

            if (!string.IsNullOrEmpty(finalMsg) && !string.IsNullOrEmpty(finalMsg.Trim()))
            {
                MessageBox.Show(finalMsg);
            }

            Log.Fatal(finalMsg);
        }