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; } }
public void OnProcessSuccessfully(Reply sender) { SuccessfullyEventHandler handler = ProcessSuccessfully; if (handler != null) handler(sender); }
public void RaiseEvent(Reply sender) { _eEvent.Raise(sender,EventArgs.Empty); }
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); }