public bool ShouldReturn(UIKit.UITextField textField) { if (textField == FirstWordTextField) { FirstWordTextField.ResignFirstResponder(); SecondWordTextField.BecomeFirstResponder(); } else { SecondWordTextField.ResignFirstResponder(); } return(true); }
void ReleaseDesignerOutlets() { if (CompareButton != null) { CompareButton.Dispose(); CompareButton = null; } if (FirstWordTextField != null) { FirstWordTextField.Dispose(); FirstWordTextField = null; } if (ResultLabel != null) { ResultLabel.Dispose(); ResultLabel = null; } if (SecondWordTextField != null) { SecondWordTextField.Dispose(); SecondWordTextField = null; } }