public void sendPhotoResult (TCSendPhotoHelper helper, PhotoDTO photoDto, string title, string message) { loadingView.dismiss (); if (photoDto.status) { object[] result = addFileHelper.displayFiles (this.bookingInfo.Id, this.bookingInfo.BookingDocuments, photoDto.bookingDocument, this.viewFiles); this.bookingInfo.BookingDocuments = (List<BookingDocumentDto>)result [0]; this.viewFiles.Frame = new CGRect (this.viewFiles.Frame.X, this.viewFiles.Frame.Y, this.viewFiles.Frame.Width, (float)result [1]); this.viewAttachment.Frame = new CGRect (this.viewAttachment.Frame.X, this.viewAttachment.Frame.Y, this.viewAttachment.Frame.Width, (float)result [1] + 20.0f); setContentSizeForScroll (); this.scrollView.ScrollRectToVisible (this.viewAttachment.Frame, true); } else { MUtils.showAlert (this, title, message); } }
private void sendUploadPhotoRequest (UIImage imageUpload, string name) { this.loadingView.show (); TCSendPhotoHelper photoHelper = new TCSendPhotoHelper (this); photoHelper.Delegate = this; photoHelper.sendPhoto (true, this.bookingInfo.Id, imageUpload, name); }