private void openCamera() { if (UIImagePickerController.IsSourceTypeAvailable (UIImagePickerControllerSourceType.Camera)) { this.imagePicker.SourceType = UIImagePickerControllerSourceType.Camera; this.imagePicker.MediaTypes = UIImagePickerController.AvailableMediaTypes (UIImagePickerControllerSourceType.Camera); parentVC.PresentModalViewController (imagePicker, true); } else { TCAlertViewController alert = new TCAlertViewController (this.parentVC, TCLocalizabled.getText ("TitleAlert"),"Camera is not available", null, null, TCLocalizabled.getText ("OkTitle")); alert.display (); } }
public void updateBookingStatusRequest (int status) { this.loadingView.show (); Action<string> successful = (response => { ResultDTO resultDTO = ParseDataHelper.parseDataUpdateBookingStatus (response); this.InvokeOnMainThread (delegate { this.loadingView.dismiss (); if (resultDTO != null) { if (resultDTO.status) { this.goBack (); } else { if (resultDTO.message != null) { TCAlertViewController alertVC = new TCAlertViewController(this, TCLocalizabled.getText("TitleAlert"), resultDTO.message, null, null, TCLocalizabled.getText("OkTitle")); alertVC.Delegate = this; alertVC.display(); } else { MUtils.showRequestFail (this); } } } else { MUtils.showRequestFail (this); } }); }); Action<string> failure = (response => { this.InvokeOnMainThread (delegate { this.loadingView.dismiss (); MUtils.showNetworkFailed (this); }); }); DataHelperRequest.getInstance ().sendUpdateBookingStatus (bookingInfo.Id, status, successful, failure); }
private bool checkValidAccount () { bool result = true; if (!MApplication.getInstance ().isLogedIn) { requireLogin (); result = false; } else if (!MApplication.getInstance ().isCompleteProfile) { TCAlertViewController alertVC = new TCAlertViewController (this.parentController, TCLocalizabled.getText ("TextAlertTitleRequiredUpdateProfile"), TCLocalizabled.getText ("TextMessageRequireUpdateProfile"), null, TCLocalizabled.getText("NoTitle"), TCLocalizabled.getText("YesTitle")); alertVC.Delegate = DelegateAlertCompleteProfile; alertVC.display (); result = false; } return result; }
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 (); }
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 (); }
private void showFailASAP () { TCAlertViewController alertVC = new TCAlertViewController (this, TCLocalizabled.getText ("TitleAlertBookATime"), TCLocalizabled.getText ("TextRequestFail"), null, null, TCLocalizabled.getText ("OkTitle")); alertVC.display (); removeVC (); }
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 (); }
public static void showMessageForceLogout (UIViewController controller) { TCAlertViewController alertVC = new TCAlertViewController (controller, TCLocalizabled.getText ("TitleAlertNotice"), TCLocalizabled.getText ("TextMessageForceLogout"), null, null, TCLocalizabled.getText ("OkTitle")); alertVC.display (ALERT_SHOW_TYPE.ONLY); }
public static void showAlert (UIViewController controller, string title, string message) { if (controller != null) { if (MApplication.getInstance ().isLogedIn || TCGlobals.getInstance.isAllowShowAlert) { TCAlertViewController alertVC = new TCAlertViewController (controller, title, message, null, null, TCLocalizabled.getText ("OkTitle")); alertVC.display (); } } }
private void showWarningMessage (string title, string message) { TCAlertViewController alert = new TCAlertViewController (this, title, message, null, null, TCLocalizabled.getText ("OkTitle")); alert.display (); }
private void noticeNotRetrieveData () { if (!this.isShowAlertNoGetData) { TCAlertViewController alertVC = new TCAlertViewController (this, TCLocalizabled.getText ("TitleAlertNotice"), TCLocalizabled.getText ("TextMessageNotReceiveConfig"), null, null, TCLocalizabled.getText ("OkTitle")); alertVC.Delegate = this; alertVC.display (); this.isShowAlertNoGetData = true; } }
private void showWarningBetaMode() { TCAlertViewController alertVC = new TCAlertViewController (this, TCLocalizabled.getText("TitleAlert"), TCLocalizabled.getText("TextMessageWarningBetaVersion"), null, null, TCLocalizabled.getText("OkTitle")); alertVC.Delegate = this; alertVC.display (); }
partial void activeClicked (NSObject sender) { this.loadingView.show(); Action<string> successful = (response => { #if DEBUG Console.Out.WriteLine (response); #endif this.InvokeOnMainThread (delegate { bool status = CoreSystem.ParseDataHelper.parseResponseActiveCode (response); if(status) { alertVC = new TCAlertViewController (this, TCLocalizabled.getText("TextAlertActiveCode"), TCLocalizabled.getText("TextMessageActiveSuccess"), null, null, TCLocalizabled.getText ("OkTitle")); alertVC.Delegate = this; alertVC.display (); } else { TCAlertViewController alert = new TCAlertViewController (this, TCLocalizabled.getText("TextAlertActiveCode"), TCLocalizabled.getText("TextMessageWrongCode"), null, null, TCLocalizabled.getText ("OkTitle")); alert.display (); } this.loadingView.dismiss(); }); }); Action<string> failure = (response => { Console.WriteLine ("FAILURE"); this.InvokeOnMainThread (delegate { this.loadingView.dismiss (); MUtils.showNetworkFailed(this); }); }); DataHelperRequest.getInstance ().sendActiveAccountRequest (MApplication.getInstance().userId, this.tfCode.Text, successful, failure); }
partial void feedbackClicked (NSObject sender) { if (this.bookingInfo.IsFeedback) { Console.Out.WriteLine ("Show info feedback ....."); TCFeedbackInfoView feedbackInfoView = TCFeedbackInfoView.Create (); feedbackInfoView.setInfo (this.bookingInfo.Rating, this.bookingInfo.Feedback); TCAlertViewController alertView = new TCAlertViewController (this.parentController, ALERT_TYPE.CUSTOM, TCLocalizabled.getText ("TitleFeedback"), "", feedbackInfoView, null, TCLocalizabled.getText ("OkTitle")); alertView.display (); } else { TCSendFeedbackComponent feedbackHelper = new TCSendFeedbackComponent (this.parentController); feedbackHelper.Delegate = this; feedbackHelper.build (this.specialistInfo.Account.Id, this.iCallId); } }
partial void signOutClicked (NSObject sender) { TCAlertViewController alertVC = new TCAlertViewController (this, TCLocalizabled.getText ("TextTitleSignOut"), TCLocalizabled.getText ("TextMessageSignOut"), null, TCLocalizabled.getText ("NoTitle"), TCLocalizabled.getText ("YesTitle")); alertVC.Delegate = this; alertVC.display (); }