public void getBookingFail (TCBookingHelper helper) { this.loadingView.dismiss (); TCAlertViewController alert = new TCAlertViewController (this, TCLocalizabled.getText ("TitleAlertNotice"), TCLocalizabled.getText ("TextMessageNotReceiveConfig"), null, null, TCLocalizabled.getText ("OkTitle")); alert.Delegate = this; alert.display (); }
public void getBookingSuccess (TCBookingHelper helper, BookingInfo info) { this.loadingView.dismiss (); this.bookingInfo = info; if (MApplication.getInstance ().isConsultant) { this.isShowWaiveFee = !CoreSystem.Utils.isDisableWaivedFee (this.bookingInfo); } setUpWaive (); this.setupDataUI (); }
private void loadLatsetBookingInfo() { TCBookingHelper bookingHelper = new TCBookingHelper (this); bookingHelper.Delegate = this; bookingHelper.getBookingInfo (this.bookingInfo.Id); }
public void getBookingFail (TCBookingHelper helper) { MUtils.showAlert (this, TCLocalizabled.getText ("TitleNetworkStatus"), TCLocalizabled.getText ("TextConnectionFailed")); }
public void getBookingSuccess (TCBookingHelper helper, BookingInfo info) { NSMutableAttributedString stringAttribute; this.bookingInfo = info; if (this.deferInfo.IsDefer) { string time = MUtils.getMinuteDefer (info.Deferral); stringAttribute = createDeferStringAttributed (this.bookingInfo, time); } else { string time = MUtils.getHourReschedule (info.Deferral); stringAttribute = createRescheduleStringAttributed (this.bookingInfo, time); } TCMessageView customMessage = new TCMessageView (UIColor.Clear, stringAttribute, false); UIViewController root = UIApplication.SharedApplication.KeyWindow.RootViewController; this.alertDeferOrReschedule = new TCAlertViewController (root, ALERT_TYPE.CUSTOM, TCLocalizabled.getText ("TextTitleDelay"), "", customMessage, TCLocalizabled.getText ("DeclineTitle"), TCLocalizabled.getText ("AcceptTitle")); this.alertDeferOrReschedule.Delegate = this; this.alertDeferOrReschedule.display (); }
public void showAlertDefer (object pDeferInfo) { this.InvokeOnMainThread (delegate { DeferInfo deferInfo = (DeferInfo)pDeferInfo; this.deferInfo = deferInfo; this.timer = NSTimer.CreateScheduledTimer(60, this, new Selector("sendRequestDeferCancel"), null, false); TCBookingHelper bookingHelper = new TCBookingHelper (this); bookingHelper.Delegate = this; bookingHelper.getBookingInfo (deferInfo.BookingId); }); }