public bool ShouldReturn(UIKit.UITextField textField)
 {
     if (textField == FirstWordTextField)
     {
         FirstWordTextField.ResignFirstResponder();
         SecondWordTextField.BecomeFirstResponder();
     }
     else
     {
         SecondWordTextField.ResignFirstResponder();
     }
     return(true);
 }
Example #2
0
 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;
     }
 }