public override void ViewDidLoad () { base.ViewDidLoad (); // Perform any additional setup after loading the view, typically from a nib. TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostStartCallDurationTimer, beginStartCallTimer); TCNotificationCenter.defaultCenter.addObserver (this, CoreSystem.Constants.kPostUploadFileSuccess, updateFileUploaded); TCNotificationCenter.defaultCenter.addObserver (this, Constants.kPostDeleteFileSuccess, updateFileDeleted); CGRect frameScreen = UIScreen.MainScreen.Bounds; string textEnquiry = bookingInfo.Enquiry == null ? "" : bookingInfo.Enquiry; this.lbEnquiry.Text = textEnquiry; CGSize sizeText = MUtils.getSizeText (textEnquiry, MUtils.getFontWithSize (false, 13.0f), this.lbEnquiry.Frame.Width); this.lbEnquiry.Frame = new CGRect (this.lbEnquiry.Frame.X, this.lbEnquiry.Frame.Y, this.lbEnquiry.Frame.Width, sizeText.Height); this.viewEnquiry.Frame = new CGRect (this.viewEnquiry.Frame.X, this.lbApplicableFee.Frame.Y + this.lbApplicableFee.Frame.Height + 10.0f, this.viewEnquiry.Frame.Width, this.lbEnquiry.Frame.Height + 25.0f); addFileHelper = new TCFileManagerHelper (this); this.addFileHelper.Delegate = this; object[] result = addFileHelper.displayFiles (this.bookingInfo.Id, this.bookingInfo.BookingDocuments, null, this.viewFiles); tweakFrameModifyDocument (result); if (MApplication.getInstance ().isConsultant && CoreSystem.Utils.isShowTalkNowRequest (DateTime.Parse (this.bookingInfo.StartTime), DateTime.Parse (this.bookingInfo.EndTime), MApplication.getInstance ().timezoneName)) { this.btnBeginConsultation.Hidden = false; } else { hideButtonConsultation (); } setContentSizeForScroll (); }
public override void ViewDidLoad () { base.ViewDidLoad (); // Perform any additional setup after loading the view, typically from a nib. TCNotificationCenter.defaultCenter.addObserver (this, CoreSystem.Constants.kPostUploadFileSuccess, updateFileUploaded); TCNotificationCenter.defaultCenter.addObserver (this, Constants.kPostDeleteFileSuccess, updateFileDeleted); this.addFileHelper = new TCFileManagerHelper (this); this.addFileHelper.Delegate = this; this.frameViewWaiveFee = this.viewWaiveFee.Frame; this.isTalkNow = false; if (this.bookingInfo.PastBooking != null) this.iCallId = this.bookingInfo.PastBooking.CallId; if (MApplication.getInstance ().isConsultant) { initActionView (this.specialistInfo); this.loadingView.show (); loadLatsetBookingInfo (); } else { if (this.specialistInfo == null) { this.loadingView.show (); TCProfileSpecialistHelper profileHelper = new TCProfileSpecialistHelper (this); profileHelper.Delegate = this; profileHelper.getProfile (this.bookingInfo.SpecialistId); } else { initBookView (this.specialistInfo); } } this.imageRating.Image = MUtils.getRatingImage (this.bookingInfo.Rating); setUpWaive (); setupDataUI (); }
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) { 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 finishActionWithFile (TCFileManagerHelper helper) { this.loadingView.dismiss (); }
public void beginActionWithFile (TCFileManagerHelper helper) { this.loadingView.show (); }
public void actionFileSuccess (TCFileManagerHelper helper, ACTION_FILE_TYPE type, BookingDocumentDto document) { deleteFile (document); }