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);
			}
		}
Ejemplo n.º 2
0
		public void onUploadSuccess (PhotoDTO photoDTO)
		{
			this.RunOnUiThread (() => {
				progressDialogParent.Hide ();
				bookingDocs.Add(photoDTO.bookingDocument);
				utilsAndroid.addFileView (this, bookingDocs, true, addFiles, deleteFile, llFileAttachment);
			});
		}
Ejemplo n.º 3
0
		public void onUploadSuccess (PhotoDTO photoDTO)
		{
			callingActivity.RunOnUiThread (() => {
				llProgress.Visibility = ViewStates.Gone;
				onUploadFileSuccess(photoDTO.bookingDocument);
			});
		}
Ejemplo n.º 4
0
		public void onUploadSuccess (PhotoDTO photoDTO)
		{
			this.RunOnUiThread (() => {
				llProgress.Visibility = ViewStates.Gone;

				bookingDocs.Add(photoDTO.bookingDocument);
				utilsAndroid.addFileView (this, bookingDocs, true, addFiles, deleteFile, llFileAttachment);
			});
		}