public void OnVncError(int errorCode, string errorMessage)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         if (VncErrorOccured != null)
         {
             VncErrorOccured(this, new VncErrorEventArgs(errorCode, errorMessage));
         }
         ClientLogger.LogDebugMessage(string.Format("WinVnc error: ({0}) - {1}", errorCode, errorMessage));
     });
 }