private void showDeclinceConfirmed (BookingInfo info) { string text1 = ""; string param1 = ""; string text2 = ""; if (MApplication.getInstance ().isConsultant && bookingInfo.IsApplyNoMinimumCharge) { this.alertDecline = new TCAlertViewController (this, TCLocalizabled.getText ("TextAlertTitleCancellation"), TCLocalizabled.getText ("TextAlertMessageSpecialistCancelNotApplyMinCharge"), null, TCLocalizabled.getText ("NoTitle"), TCLocalizabled.getText ("YesTitle")); } else { if (!MApplication.getInstance ().isConsultant) { text1 = TCLocalizabled.getText ("TextAlertMessageCustomerCancel1"); param1 = "$" + MUtils.getCost (info.CustomerMinCharge); text2 = TCLocalizabled.getText ("TextAlertMessageCustomerCancel2"); } else { text1 = TCLocalizabled.getText ("TextAlertMessageSpecialistCancel1"); param1 = "$" + MUtils.getCost (info.SpecialistMinCharge); text2 = TCLocalizabled.getText ("TextAlertMessageSpecialistCancel2"); } var attributedString = new NSMutableAttributedString (text1 + param1 + text2); UIFont fontMessage = MUtils.getFontWithSize (false, 14.0f); attributedString.SetAttributes (new UIStringAttributes { Font = fontMessage, ForegroundColor = TCTheme.getInstance.getThemeColor (Theme.TextColorBooking) }.Dictionary, new NSRange (text1.Length, param1.Length)); TCMessageView customMessage = new TCMessageView (UIColor.Clear, attributedString, false); this.alertDecline = new TCAlertViewController (this, ALERT_TYPE.CUSTOM, TCLocalizabled.getText ("TextAlertTitleCancellation"), "", customMessage, TCLocalizabled.getText ("NoTitle"), TCLocalizabled.getText ("YesTitle")); } this.alertDecline.Delegate = this; this.alertDecline.display (); }
private void showSuccessASAP () { NSMutableAttributedString stringAttribute = createASAPSuccessAttributed (TCLocalizabled.getText ("TextMessageASAPSuccess")); TCMessageView customMessage = new TCMessageView (UIColor.Clear, stringAttribute, false); TCAlertViewController alertVC = new TCAlertViewController (this, ALERT_TYPE.CUSTOM, TCLocalizabled.getText ("TextAlertTitleSoonestSuccess"), "", customMessage, null, TCLocalizabled.getText ("OkTitle")); alertVC.display (); removeVC (); }
private void showConfirm () { NSMutableAttributedString stringAttribute = createTalknowAttributed (specialistInfo); TCMessageView customMessage = new TCMessageView (UIColor.Clear, stringAttribute, false); TCAlertViewController alertVC = new TCAlertViewController (this, ALERT_TYPE.CUSTOM, TCLocalizabled.getText ("TextAlertTitleTalknowConfirm"), "", customMessage, TCLocalizabled.getText ("CancelTitle"), TCLocalizabled.getText ("OkTitle")); alertVC.Delegate = this; alertVC.display (); }
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 (); }