コード例 #1
0
		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 ();
			}
		}
コード例 #2
0
		public void finishUpdateWaiveFeeRequest (TCUpdateWaiveFeeHelper helper)
		{
			this.loadingView.dismiss ();
		}
コード例 #3
0
		public void updateWaiveFeeFail (TCUpdateWaiveFeeHelper helper)
		{
			MUtils.showRequestFail (this);
		}
コード例 #4
0
		public void beginUpdateWaiveFeeRequest (TCUpdateWaiveFeeHelper helper)
		{
			this.loadingView.show ();
		}
コード例 #5
0
		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 ();
		}