public override void ViewDidLoad() { base.ViewDidLoad(); //Request button clicked RequestButton.TouchUpInside += (object sender, EventArgs e) => { //Resign first responders NameTextBox.ResignFirstResponder(); CurrentLocationTextBox.ResignFirstResponder(); DestinationTextBox.ResignFirstResponder(); //Get user information string name = NameTextBox.Text; string fromLocation = CurrentLocationTextBox.Text; string toLocation = DestinationTextBox.Text; string additionalInfo = AdditionalInfoTextBox.Text; SVC.RequestButtonClicked(name, fromLocation, toLocation, additionalInfo); }; //Feedback button clicked FeedbackButton.TouchUpInside += (object sender, EventArgs e) => { UIApplication.SharedApplication.OpenUrl(new NSUrl("https://docs.google.com/forms/d/e/1FAIpQLSdeB7-BxZh4oWTGqrMGMUL4wu0ufQRKmEyNvwKGfzXt8OdZYQ/viewform?usp=sf_link")); }; }
void ReleaseDesignerOutlets() { if (AdditionalInfoTextBox != null) { AdditionalInfoTextBox.Dispose(); AdditionalInfoTextBox = null; } if (CurrentLocationTextBox != null) { CurrentLocationTextBox.Dispose(); CurrentLocationTextBox = null; } if (DestinationTextBox != null) { DestinationTextBox.Dispose(); DestinationTextBox = null; } if (FeedbackButton != null) { FeedbackButton.Dispose(); FeedbackButton = null; } if (NameTextBox != null) { NameTextBox.Dispose(); NameTextBox = null; } if (RequestButton != null) { RequestButton.Dispose(); RequestButton = null; } }