private void SetFieldTags() { RestaurantNameTextField.Tag = 1; RestaurantNameTextField.BecomeFirstResponder(); RestaurantTypeTextField.Tag = 2; RestaurantAddressTextField.Tag = 3; RestaurantPhoneTextField.Tag = 4; RestaurantDescriptionTextView.Tag = 5; }
void ReleaseDesignerOutlets() { if (NewRestaurantCloseButton != null) { NewRestaurantCloseButton.Dispose(); NewRestaurantCloseButton = null; } if (NewRestaurantSaveButton != null) { NewRestaurantSaveButton.Dispose(); NewRestaurantSaveButton = null; } if (PhotoImageView != null) { PhotoImageView.Dispose(); PhotoImageView = null; } if (RestaurantAddressLabel != null) { RestaurantAddressLabel.Dispose(); RestaurantAddressLabel = null; } if (RestaurantAddressTextField != null) { RestaurantAddressTextField.Dispose(); RestaurantAddressTextField = null; } if (RestaurantDescriptionLabel != null) { RestaurantDescriptionLabel.Dispose(); RestaurantDescriptionLabel = null; } if (RestaurantDescriptionTextView != null) { RestaurantDescriptionTextView.Dispose(); RestaurantDescriptionTextView = null; } if (RestaurantNameLabel != null) { RestaurantNameLabel.Dispose(); RestaurantNameLabel = null; } if (RestaurantNameTextField != null) { RestaurantNameTextField.Dispose(); RestaurantNameTextField = null; } if (RestaurantPhoneLabel != null) { RestaurantPhoneLabel.Dispose(); RestaurantPhoneLabel = null; } if (RestaurantPhoneTextField != null) { RestaurantPhoneTextField.Dispose(); RestaurantPhoneTextField = null; } if (RestaurantTypeLabel != null) { RestaurantTypeLabel.Dispose(); RestaurantTypeLabel = null; } if (RestaurantTypeTextField != null) { RestaurantTypeTextField.Dispose(); RestaurantTypeTextField = null; } }