private DownloadMotionErrorCode ConvertReplyErrorCode(Reply.Type errorCode)
 {
     switch (errorCode)
     {
         case Reply.Type.IO_ERROR:
             return DownloadMotionErrorCode.IOError;
         case Reply.Type.DB_ERROR:
             return DownloadMotionErrorCode.DBError;
         case Reply.Type.NO_PERMISSION:
             return DownloadMotionErrorCode.NoPermission;
         default:
             return DownloadMotionErrorCode.UnknownError;
     }
 }
Example #2
0
 public void OnProcessSuccessfully(Reply sender)
 {
     SuccessfullyEventHandler handler = ProcessSuccessfully;
     if (handler != null) handler(sender);
 }
Example #3
0
 public void RaiseEvent(Reply sender)
 {
     _eEvent.Raise(sender,EventArgs.Empty);
 }
Example #4
0
 public void OnProcessError(Reply sender, string msg)
 {
     ErrorEventHandler handler = ProcessError;
     if (handler != null) handler(sender, msg);
 }
 private void OnProcessError(Reply.Type errorCode, string errorMessage)
 {
     ErrorEventHandler handler = ProcessError;
     if (handler != null) handler(errorCode, errorMessage);
 }