public void actionFileSuccess (TCFileManagerHelper helper, ACTION_FILE_TYPE type, BookingDocumentDto document) { if (this.bookingInfo.BookingDocuments != null && this.bookingInfo.BookingDocuments.Count > 0) { List<BookingDocumentDto> bookingDocuments = this.bookingInfo.BookingDocuments; var documentDto = bookingDocuments.Find (x => x.Id == document.Id) as BookingDocumentDto; if (documentDto != null) { this.bookingInfo.BookingDocuments.Remove (documentDto); object[] result = addFileHelper.displayFiles (this.bookingInfo.Id, this.bookingInfo.BookingDocuments, null, this.viewFiles); tweakFrameModifyDocument (result); } } }
public void actionFileFail (TCFileManagerHelper helper, ACTION_FILE_TYPE type, BookingDocumentDto document) { MUtils.showAlert (this, TCLocalizabled.getText ("TitleAlertDeleteFile"), String.Format (TCLocalizabled.getText ("MessageAlertDeleteFile"), document.OriginalFileName)); }
public void actionFileSuccess (TCFileManagerHelper helper, ACTION_FILE_TYPE type, BookingDocumentDto document) { deleteFile (document); }