internal void WhenRequestProgressChanged(object sender,
                         RequestProgressChangedEventArgs args)
 {
     if (args.RequestMethod == RequestMethod.PostMultipart)
                         OnUploadPhotoProgressChanged (
                                         new UploadPhotoProgressChangedEventArgs (
                                                 args.BytesTransferred,
                                                 args.TotalBytesToTranfer));
                 else
                         OnDownloadPhotoProgressChanged (
                                         new DownloadPhotoProgressChangedEventArgs (
                                                 args.BytesTransferred,
                                                 args.TotalBytesToTranfer));
 }
 private void OnRequestProgressChanged(RequestProgressChangedEventArgs args)
 {
     if (RequestProgressChanged != null)
                       RequestProgressChanged (this, args);
 }