private void RDPEvent_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent msTscAxEventsOnFatalErrorEvent)
 {
     base.Event_ErrorOccured(this, msTscAxEventsOnFatalErrorEvent.errorCode.ToString());
 }
예제 #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, details:\n\nError Code:{0}\n\nError Description:{1}", errorCode, message);
     MessageBox.Show(finalMsg);
     Logging.Fatal(finalMsg);
 }
예제 #3
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);
        }
예제 #4
0
 void axMsRdpClient2_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e)
 {
     //throw new Exception("The method or operation is not implemented.");
 }
예제 #5
0
파일: Checker.cs 프로젝트: intech/Checker
 private void client_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e)
 {
     failCode = e.errorCode;
     failInfo.AppendFormat("Fatal error: {0}", e.errorCode);
     client.Disconnect();
 }