Пример #1
0
 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;
     }
 }
Пример #2
0
 public void OnProcessSuccessfully(Reply sender)
 {
     SuccessfullyEventHandler handler = ProcessSuccessfully;
     if (handler != null) handler(sender);
 }
Пример #3
0
 public void RaiseEvent(Reply sender)
 {
     _eEvent.Raise(sender,EventArgs.Empty);
 }
Пример #4
0
 public void OnProcessError(Reply sender, string msg)
 {
     ErrorEventHandler handler = ProcessError;
     if (handler != null) handler(sender, msg);
 }
Пример #5
0
 private void OnProcessError(Reply.Type errorCode, string errorMessage)
 {
     ErrorEventHandler handler = ProcessError;
     if (handler != null) handler(errorCode, errorMessage);
 }