public void buttonOkClicked (TCFeedbackViewController sender, int index) { if (index == 0) { string textFeedback = ""; if (!sender.getTextView ().Text.Equals (TCLocalizabled.getText ("TextPlaceholderFeedback"))) { textFeedback = sender.getTextView ().Text.Trim (); } sendFeedback (textFeedback, sender.getNumberRating ()); } sender.View.RemoveFromSuperview (); sender.RemoveFromParentViewController (); }
public void build (Guid pSpecialistId, Guid iCallId) { this.iCallId = iCallId; this.specialistId = pSpecialistId; TCFeedbackViewController feedBackVC = new TCFeedbackViewController (UITextAlignment.Justified); feedBackVC.pDelegate = this; UIViewController vc = this.parentController; if (vc.NavigationController != null) { vc = vc.NavigationController; } feedBackVC.View.Frame = vc.View.Frame; vc.AddChildViewController (feedBackVC); vc.View.AddSubview (feedBackVC.View); }