public override void alertOkClicked (TCAlertViewController alert) { if (this.waiveAlert == alert) { TCUpdateWaiveFeeHelper waiveFeeHelper = new TCUpdateWaiveFeeHelper (this); waiveFeeHelper.Delegate = this; waiveFeeHelper.update (this.bookingInfo.Id); } else { back (); } }
public void finishUpdateWaiveFeeRequest (TCUpdateWaiveFeeHelper helper) { this.loadingView.dismiss (); }
public void updateWaiveFeeFail (TCUpdateWaiveFeeHelper helper) { MUtils.showRequestFail (this); }
public void beginUpdateWaiveFeeRequest (TCUpdateWaiveFeeHelper helper) { this.loadingView.show (); }
public void updateWaiveFeeSuccess (TCUpdateWaiveFeeHelper helper) { MUtils.showRequestSuccess (this); this.lbWarningWaiveFee.Hidden = false; this.bookingInfo.PastBooking.CustomerTotalRate = this.bookingInfo.PastBooking.CustomerTotalRate - this.bookingInfo.PastBooking.SpecialistTotalRate; this.bookingInfo.IsWaiveFee = true; this.isShowWaiveFee = false; this.lbTotalCost.Text = "$" + MUtils.getCost ((double)this.bookingInfo.PastBooking.CustomerTotalRate); if (TCViewIdentity.getInstance.getObjectForKey ("TCBookingPastViewController") != null) { TCBookingPastViewController _pastBookingVC = (TCBookingPastViewController)TCViewIdentity.getInstance.getObjectForKey ("TCBookingPastViewController"); TCNotificationCenter.defaultCenter.postNotification (MUtils.generateKeyPastBooking (_pastBookingVC), this.bookingInfo); } setContentSizeForScroll (); }