public void buttonClicked (TCEnquiryViewController sender, int index) { if (index == 0) { this.enquiryText = sender.getTextView ().Text.Trim(); if (this.enquiryText.Equals ("")) { MUtils.showAlert (this.parentController, TCLocalizabled.getText ("TitleWarningEnquiry"), TCLocalizabled.getText ("TextMessageRequiredEnquiry")); sender.getTextView ().BecomeFirstResponder(); return; } } TCGlobals.getInstance.currentVC = this.parentController; sender.View.RemoveFromSuperview (); sender.RemoveFromParentViewController (); if (index == 0) { bookAtime (this.chooseStandard); } }
public void buttonClicked (TCEnquiryViewController sender, int index) { if (index == 0) { this.enquiryText = sender.getTextView ().Text.Trim(); if (this.enquiryText.Equals ("")) { MUtils.showAlert (this, TCLocalizabled.getText ("TitleWarningEnquiry"), TCLocalizabled.getText ("TextMessageRequiredEnquiry")); sender.getTextView ().BecomeFirstResponder(); } else { showConfirm (); this.alertViewVC.View.Hidden = true; } } else { removeVC (); } }