private void RDPEvent_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent msTscAxEventsOnFatalErrorEvent) { base.Event_ErrorOccured(this, msTscAxEventsOnFatalErrorEvent.errorCode.ToString()); }
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); }
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); }
void axMsRdpClient2_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e) { //throw new Exception("The method or operation is not implemented."); }
private void client_OnFatalError(object sender, IMsTscAxEvents_OnFatalErrorEvent e) { failCode = e.errorCode; failInfo.AppendFormat("Fatal error: {0}", e.errorCode); client.Disconnect(); }