void ReleaseDesignerOutlets() { if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (StartButton != null) { StartButton.Dispose(); StartButton = null; } }
void ReleaseDesignerOutlets() { if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (ProfileImageButton != null) { ProfileImageButton.Dispose(); ProfileImageButton = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } }
void ReleaseDesignerOutlets() { if (FirstNameLabel != null) { FirstNameLabel.Dispose(); FirstNameLabel = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameLabel != null) { LastNameLabel.Dispose(); LastNameLabel = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (NextButton != null) { NextButton.Dispose(); NextButton = null; } }
void ReleaseDesignerOutlets() { if (CNTextField != null) { CNTextField.Dispose(); CNTextField = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (sAMAccountNameTextField != null) { sAMAccountNameTextField.Dispose(); sAMAccountNameTextField = null; } if (UPNTextField != null) { UPNTextField.Dispose(); UPNTextField = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); var me = RealmUserServices.GetMe(false); FirstNameTextField.KeyboardType = UIKeyboardType.EmailAddress; FirstNameTextField.Text = me.FirstName; FirstNameTextField.Placeholder = Strings.Basic.first_name; FirstNameTextField.AutocorrectionType = UITextAutocorrectionType.No; FirstNameTextField.EditingDidEndOnExit += (sender, e) => { FirstNameTextField.ResignFirstResponder(); }; LastNameTextField.KeyboardType = UIKeyboardType.EmailAddress; LastNameTextField.Text = me.LastName; LastNameTextField.Placeholder = Strings.Basic.last_name; LastNameTextField.AutocorrectionType = UITextAutocorrectionType.No; LastNameTextField.EditingDidEndOnExit += (sender, e) => { LastNameTextField.ResignFirstResponder(); }; ProfileImageButton.SetImageWithCustomCache(me.GetRemoteProfileImageUrlCached(), FallbackImageFileName, FallbackImageFileName, me.RemoteProfileImageURL); ProfileImageButton.Layer.MasksToBounds = true; ProfileImageButton.Layer.CornerRadius = ProfileImageButton.Frame.Size.Width / 2; ProfileImageButton.ClipsToBounds = true; ProfileImageButton.ActivityIndicatorViewStyle = UIActivityIndicatorViewStyle.Gray; SetProgressButton(SaveButton); RemoveBackBarButtonTitle(); }
void ReleaseDesignerOutlets() { if (AddUserButton != null) { AddUserButton.Dispose(); AddUserButton = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } }
void ReleaseDesignerOutlets() { if (AvatarImageView != null) { AvatarImageView.Dispose(); AvatarImageView = null; } if (CustomerIdTextField != null) { CustomerIdTextField.Dispose(); CustomerIdTextField = null; } if (DetailTypeSegmentedControl != null) { DetailTypeSegmentedControl.Dispose(); DetailTypeSegmentedControl = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } }
private void GestureGecognizer() { var gestureRecognizer = new UITapGestureRecognizer(() => { FirstNameTextField.ResignFirstResponder(); LastNameTextField.ResignFirstResponder(); EmailTextField.ResignFirstResponder(); PasswordTextField.ResignFirstResponder(); ConfirmPasswordTextField.ResignFirstResponder(); PhoneNumberTextField.ResignFirstResponder(); }); View.AddGestureRecognizer(gestureRecognizer); }
void ReleaseDesignerOutlets() { if (ConfirmPasswordTextField != null) { ConfirmPasswordTextField.Dispose(); ConfirmPasswordTextField = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PhoneNumberTextField != null) { PhoneNumberTextField.Dispose(); PhoneNumberTextField = null; } if (RegistrationNavigationBar != null) { RegistrationNavigationBar.Dispose(); RegistrationNavigationBar = null; } if (RegistrationNavigationItem != null) { RegistrationNavigationItem.Dispose(); RegistrationNavigationItem = null; } }
void ReleaseDesignerOutlets() { if (CreateAccountButton != null) { CreateAccountButton.Dispose(); CreateAccountButton = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PhoneNumberTextField != null) { PhoneNumberTextField.Dispose(); PhoneNumberTextField = null; } if (ServiceStartDateTextField != null) { ServiceStartDateTextField.Dispose(); ServiceStartDateTextField = null; } if (UsernameTextField != null) { UsernameTextField.Dispose(); UsernameTextField = null; } }
protected override bool ValidateAllFields() { string firstName = FirstNameTextField.Text.Trim(); string lastName = LastNameTextField.Text.Trim(); bool allFieldsValid = true; //firstname validation if (String.IsNullOrEmpty(firstName)) { FirstNameTextField.SetInvalid(); allFieldsValid = false; } if (String.IsNullOrEmpty(lastName)) { LastNameTextField.SetInvalid(); allFieldsValid = false; } return(allFieldsValid); }
private void InitViewModel() { FirstNameTextField.EditingChanged += (sender, e) => { }; LastNameTextField.EditingChanged += (sender, e) => { }; EmailTextField.EditingChanged += (sender, e) => { }; this.SetBinding(() => ViewModel.User.Name, () => FirstNameTextField.Text, BindingMode.TwoWay).ObserveTargetEvent("EditingChanged"); this.SetBinding(() => ViewModel.User.LastName, () => LastNameTextField.Text, BindingMode.TwoWay).ObserveTargetEvent("EditingChanged"); this.SetBinding(() => ViewModel.User.Email, () => EmailTextField.Text, BindingMode.TwoWay).ObserveTargetEvent("EditingChanged"); ViewModel.OnFirstNameValidation += (string error) => { FirstNameTextField.BecomeFirstResponder(); this.ShowError(error); }; ViewModel.OnLastNameValidation += (string error) => { LastNameTextField.BecomeFirstResponder(); this.ShowError(error); }; ViewModel.OnEmailNameValidation += (string error) => { EmailTextField.BecomeFirstResponder(); this.ShowError(error); }; ViewModel.OnUnexpectedError += (string error) => { FirstNameTextField.BecomeFirstResponder(); this.ShowError(error); }; ViewModel.OnError += (string error) => { FirstNameTextField.BecomeFirstResponder(); this.ShowError(error); }; }
void ReleaseDesignerOutlets() { if (BackButton != null) { BackButton.Dispose(); BackButton = null; } if (BackgroundImageView != null) { BackgroundImageView.Dispose(); BackgroundImageView = null; } if (ConfirmPasswordTextField != null) { ConfirmPasswordTextField.Dispose(); ConfirmPasswordTextField = null; } if (CreateAccountButton != null) { CreateAccountButton.Dispose(); CreateAccountButton = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (EmailTextFieldOfForgetPassword != null) { EmailTextFieldOfForgetPassword.Dispose(); EmailTextFieldOfForgetPassword = null; } if (EmailTextFieldOfRegistration != null) { EmailTextFieldOfRegistration.Dispose(); EmailTextFieldOfRegistration = null; } if (ErrorMessageLabel != null) { ErrorMessageLabel.Dispose(); ErrorMessageLabel = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (ForgetPasswordButton != null) { ForgetPasswordButton.Dispose(); ForgetPasswordButton = null; } if (ForgetPasswordContainer != null) { ForgetPasswordContainer.Dispose(); ForgetPasswordContainer = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (LoadingIndicator != null) { LoadingIndicator.Dispose(); LoadingIndicator = null; } if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (LoginContainer != null) { LoginContainer.Dispose(); LoginContainer = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PasswordTextFieldOfRegistration != null) { PasswordTextFieldOfRegistration.Dispose(); PasswordTextFieldOfRegistration = null; } if (RegistrationButton != null) { RegistrationButton.Dispose(); RegistrationButton = null; } if (RegistrationContainer != null) { RegistrationContainer.Dispose(); RegistrationContainer = null; } if (ResetPasswordButton != null) { ResetPasswordButton.Dispose(); ResetPasswordButton = null; } if (WhatIsSeekiosButton != null) { WhatIsSeekiosButton.Dispose(); WhatIsSeekiosButton = null; } }
partial void OnClick(UIButton sender) { EmailTextField.ResignFirstResponder(); PasswordTextField.ResignFirstResponder(); FirstNameTextField.ResignFirstResponder(); LastNameTextField.ResignFirstResponder(); //Ensure required fields are input if (Settings.Email == null || Settings.Email == string.Empty) { HelperMethods.SendBasicAlert("Validation", "Please input a valid email address"); return; } if (Settings.Password == null || Settings.Password == string.Empty) { HelperMethods.SendBasicAlert("Validation", "Please input a valid password"); return; } if (Settings.Email != ReEmailTextField.Text) { HelperMethods.SendBasicAlert("Validation", "Email doesn't match"); return; } if (Settings.Password != RePasswordTextField.Text) { HelperMethods.SendBasicAlert("Validation", "Password doesn't match"); return; } if (Settings.FirstName == null || Settings.FirstName == string.Empty) { HelperMethods.SendBasicAlert("Validation", "Please input your first name"); return; } if (Settings.LastName == null || Settings.LastName == string.Empty) { HelperMethods.SendBasicAlert("Validation", "Please input your last name"); return; } if (Settings.Phone == null || Settings.Phone == string.Empty) { HelperMethods.SendBasicAlert("Validation", "Please input your phone number"); return; } if (Settings.LocationPickerSelectedId == 0) { HelperMethods.SendBasicAlert("Validation", "Please select your location"); return; } RegistrationViewController registrationVC = (RegistrationViewController)((MultiStepProcessHorizontalViewController)this.ParentViewController).ContainerViewController; var stepThree = registrationVC.Steps[2]; registrationVC._pageViewController.SetViewControllers(new[] { stepThree as UIViewController }, UIPageViewControllerNavigationDirection.Forward, true, (finished) => { if (finished) { //finalStep.StepActivated(this, new MultiStepProcessStepEventArgs()); } }); //throw new NotImplementedException(); }
void ReleaseDesignerOutlets() { if (AddressLine12StackView != null) { AddressLine12StackView.Dispose(); AddressLine12StackView = null; } if (AddressLine1TextField != null) { AddressLine1TextField.Dispose(); AddressLine1TextField = null; } if (AddressLine2TextField != null) { AddressLine2TextField.Dispose(); AddressLine2TextField = null; } if (AddressSameAsBuyerLabel != null) { AddressSameAsBuyerLabel.Dispose(); AddressSameAsBuyerLabel = null; } if (AddressSameAsBuyerStackView != null) { AddressSameAsBuyerStackView.Dispose(); AddressSameAsBuyerStackView = null; } if (AddressSameAsBuyerSwitch != null) { AddressSameAsBuyerSwitch.Dispose(); AddressSameAsBuyerSwitch = null; } if (AliasTextField != null) { AliasTextField.Dispose(); AliasTextField = null; } if (CityStateCountryStackView != null) { CityStateCountryStackView.Dispose(); CityStateCountryStackView = null; } if (CityTextField != null) { CityTextField.Dispose(); CityTextField = null; } if (CountryTextField != null) { CountryTextField.Dispose(); CountryTextField = null; } if (CountyLabel != null) { CountyLabel.Dispose(); CountyLabel = null; } if (CountyTextField != null) { CountyTextField.Dispose(); CountyTextField = null; } if (CountyZipStackView != null) { CountyZipStackView.Dispose(); CountyZipStackView = null; } if (EmailErrorLabel != null) { EmailErrorLabel.Dispose(); EmailErrorLabel = null; } if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (FirstNameErrorLabel != null) { FirstNameErrorLabel.Dispose(); FirstNameErrorLabel = null; } if (FirstNameLabel != null) { FirstNameLabel.Dispose(); FirstNameLabel = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (HomePhoneEmailStackView != null) { HomePhoneEmailStackView.Dispose(); HomePhoneEmailStackView = null; } if (HomePhoneErrorLabel != null) { HomePhoneErrorLabel.Dispose(); HomePhoneErrorLabel = null; } if (HomePhoneLabel != null) { HomePhoneLabel.Dispose(); HomePhoneLabel = null; } if (HomePhoneTextField != null) { HomePhoneTextField.Dispose(); HomePhoneTextField = null; } if (LastNameErrorLabel != null) { LastNameErrorLabel.Dispose(); LastNameErrorLabel = null; } if (LastNameLabel != null) { LastNameLabel.Dispose(); LastNameLabel = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (MiddleLastStackView != null) { MiddleLastStackView.Dispose(); MiddleLastStackView = null; } if (MiddleNameTextField != null) { MiddleNameTextField.Dispose(); MiddleNameTextField = null; } if (MobilePhoneErrorLabel != null) { MobilePhoneErrorLabel.Dispose(); MobilePhoneErrorLabel = null; } if (MobilePhoneLabel != null) { MobilePhoneLabel.Dispose(); MobilePhoneLabel = null; } if (MobilePhoneTextField != null) { MobilePhoneTextField.Dispose(); MobilePhoneTextField = null; } if (MobileWorkPhoneStackView != null) { MobileWorkPhoneStackView.Dispose(); MobileWorkPhoneStackView = null; } if (PrefixFirstStackView != null) { PrefixFirstStackView.Dispose(); PrefixFirstStackView = null; } if (PrefixTextField != null) { PrefixTextField.Dispose(); PrefixTextField = null; } if (StateCountryLabel != null) { StateCountryLabel.Dispose(); StateCountryLabel = null; } if (StateTextField != null) { StateTextField.Dispose(); StateTextField = null; } if (SuffixAliasStackView != null) { SuffixAliasStackView.Dispose(); SuffixAliasStackView = null; } if (SuffixTextField != null) { SuffixTextField.Dispose(); SuffixTextField = null; } if (ValidationErrorLabel != null) { ValidationErrorLabel.Dispose(); ValidationErrorLabel = null; } if (WorkExtensionTextField != null) { WorkExtensionTextField.Dispose(); WorkExtensionTextField = null; } if (WorkPhoneErrorLabel != null) { WorkPhoneErrorLabel.Dispose(); WorkPhoneErrorLabel = null; } if (WorkPhoneLabel != null) { WorkPhoneLabel.Dispose(); WorkPhoneLabel = null; } if (WorkPhoneTextField != null) { WorkPhoneTextField.Dispose(); WorkPhoneTextField = null; } if (ZipCodeTextField != null) { ZipCodeTextField.Dispose(); ZipCodeTextField = null; } }
void ReleaseDesignerOutlets() { if (CompanyTextField != null) { CompanyTextField.Dispose(); CompanyTextField = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (HomeAirportTextField != null) { HomeAirportTextField.Dispose(); HomeAirportTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (LocationLabel != null) { LocationLabel.Dispose(); LocationLabel = null; } if (LocationPicker != null) { LocationPicker.Dispose(); LocationPicker = null; } if (MapCCodePicker != null) { MapCCodePicker.Dispose(); MapCCodePicker = null; } if (NextButton != null) { NextButton.Dispose(); NextButton = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PhoneTextField != null) { PhoneTextField.Dispose(); PhoneTextField = null; } if (ReEmailTextField != null) { ReEmailTextField.Dispose(); ReEmailTextField = null; } if (RePasswordTextField != null) { RePasswordTextField.Dispose(); RePasswordTextField = null; } }
void ReleaseDesignerOutlets() { if (CompanyTextField != null) { CompanyTextField.Dispose(); CompanyTextField = null; } if (ContainerView != null) { ContainerView.Dispose(); ContainerView = null; } if (dismissButton != null) { dismissButton.Dispose(); dismissButton = null; } if (finishButton != null) { finishButton.Dispose(); finishButton = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (LocationsPicker != null) { LocationsPicker.Dispose(); LocationsPicker = null; } if (MapCCodePickerView != null) { MapCCodePickerView.Dispose(); MapCCodePickerView = null; } if (MobilePhoneTextField != null) { MobilePhoneTextField.Dispose(); MobilePhoneTextField = null; } if (PageHeaderLabel != null) { PageHeaderLabel.Dispose(); PageHeaderLabel = null; } if (PilotSegmentControl != null) { PilotSegmentControl.Dispose(); PilotSegmentControl = null; } if (ProfileScrollView != null) { ProfileScrollView.Dispose(); ProfileScrollView = null; } }
public override void SetDataAndStyleToView() { Title = Application.LocalizedString("ParameterTitle"); InitialiseAllStrings(); // round corner on the button modify the image of the user ModifyUserImageButton.Layer.CornerRadius = 4; ModifyUserImageButton.Layer.BorderWidth = 1; ModifyUserImageButton.Layer.BorderColor = UIColor.FromRGBA(98, 218, 115, 255).CGColor; ModifyUserImageButton.ContentEdgeInsets = new UIEdgeInsets(5, 10, 5, 10); SaveButton.Layer.CornerRadius = 4; SaveButton.Layer.MasksToBounds = true; AboutButton.Enabled = true; LogOutButton.Enabled = true; EmailTextField.Enabled = false; // Free Credits Details RefreshDisplayedCreditCount(); FirstNameTextField.EditingChanged += (o, e) => { _hasDataChanged = true; SaveButton.Enabled = true; }; FirstNameTextField.ShouldReturn += (textField) => { FirstNameTextField.ResignFirstResponder(); return(true); }; LastNameTextField.EditingChanged += (o, e) => { _hasDataChanged = true; SaveButton.Enabled = true; }; LastNameTextField.ShouldReturn += (textField) => { LastNameTextField.ResignFirstResponder(); _hasDataChanged = true; return(true); }; EmailTextField.EditingChanged += (o, e) => { _hasDataChanged = true; SaveButton.Enabled = true; EmailTextField.AutocorrectionType = UITextAutocorrectionType.No; }; EmailTextField.ShouldReturn += (textField) => { EmailTextField.ResignFirstResponder(); _hasDataChanged = true; return(true); }; CountryCodeTextField.EditingChanged += (o, e) => { _hasDataChanged = true; SaveButton.Enabled = true; }; CountryCodeTextField.ShouldReturn += (textField) => { CountryCodeTextField.ResignFirstResponder(); _hasDataChanged = true; return(true); }; PhoneNumberTextField.EditingChanged += (o, e) => { _hasDataChanged = true; SaveButton.Enabled = true; }; PhoneNumberTextField.ShouldReturn += (textField) => { PhoneNumberTextField.ResignFirstResponder(); _hasDataChanged = true; return(true); }; var toolbar = new UIToolbar(); toolbar.BarStyle = UIBarStyle.Default; toolbar.Translucent = true; toolbar.SizeToFit(); // Done button var doneButton = new UIBarButtonItem(Application.LocalizedString("Validate"), UIBarButtonItemStyle.Done, (s, e) => { PhoneNumberTextField.ResignFirstResponder(); }); toolbar.SetItems(new UIBarButtonItem[] { doneButton }, true); PhoneNumberTextField.InputAccessoryView = toolbar; PhoneNumberTextField.InputAccessoryView = toolbar; PhoneNumberTextField.InputAccessoryView = toolbar; FirstNameTextField.Text = App.CurrentUserEnvironment.User.FirstName; LastNameTextField.Text = App.CurrentUserEnvironment.User.LastName; EmailTextField.Text = App.CurrentUserEnvironment.User.Email; PhoneNumberTextField.KeyboardType = UIKeyboardType.DecimalPad; //if (!string.IsNullOrEmpty(App.CurrentUserEnvironment.User.PhoneNumber)) //{ // var phoneNumber = App.CurrentUserEnvironment.User.PhoneNumber.Split('|'); // if (phoneNumber != null && phoneNumber.Length == 2) // { // if (phoneNumber[0].Contains("+")) // { // phoneNumber[0] = phoneNumber[0].Substring(1, phoneNumber[0].Length - 1); // } // CountryCodeTextField.Text = phoneNumber[0]; // PhoneNumberTextField.Text = phoneNumber[1]; // } //} UserImageView.Layer.CornerRadius = UserImageView.Frame.Size.Width / 2; UserImageView.ClipsToBounds = true; if (!string.IsNullOrEmpty(App.CurrentUserEnvironment.User.UserPicture)) { using (var dataDecoded = new NSData(App.CurrentUserEnvironment.User.UserPicture , NSDataBase64DecodingOptions.IgnoreUnknownCharacters)) { UserImageView.Image = new UIImage(dataDecoded); } } SaveButton.Enabled = false; }
private void SetDataAndStyleToView() { // init strings in view InitializeAllStrings(); // set up the background //BackgroundImageView2.Image = UIImage.FromBundle("LoginBackground"); // dissmiss the keyboard when i press return key on email TextField EmailTextField.ShouldReturn += (textField) => { EmailTextField.ResignFirstResponder(); PasswordTextField.BecomeFirstResponder(); return(true); }; // dissmiss the keyboard when i press return key on password TextField PasswordTextField.ShouldReturn += (textField) => { PasswordTextField.ResignFirstResponder(); LoginButton_TouchUpInside(null, null); return(true); }; // dissmiss the keyboard when i press return key on Name TextField FirstNameTextField.ShouldReturn += (textField) => { FirstNameTextField.ResignFirstResponder(); LastNameTextField.BecomeFirstResponder(); return(true); }; // dissmiss the keyboard when i press return key on FirstName TextField LastNameTextField.ShouldReturn += (textField) => { LastNameTextField.ResignFirstResponder(); EmailTextFieldOfRegistration.BecomeFirstResponder(); return(true); }; // dissmiss the keyboard when i press return key on email TextField EmailTextFieldOfRegistration.ShouldReturn += (textField) => { EmailTextFieldOfRegistration.ResignFirstResponder(); PasswordTextFieldOfRegistration.BecomeFirstResponder(); return(true); }; // dissmiss the keyboard when i press return key on password TextField PasswordTextFieldOfRegistration.ShouldReturn += (textField) => { PasswordTextFieldOfRegistration.ResignFirstResponder(); ConfirmPasswordTextField.BecomeFirstResponder(); return(true); }; PasswordTextFieldOfRegistration.EditingChanged += (o, e) => { ErrorMessageLabel.Hidden = true; }; PasswordTextFieldOfRegistration.ShouldBeginEditing += (textField) => { if (View.Frame.Y >= 0) { bottom = ((float)(RegistrationContainer.Frame.Y + PasswordTextFieldOfRegistration.Frame.Y + PasswordTextFieldOfRegistration.Frame.Height + 10)); } return(true); }; // dissmiss the keyboard when i press return key on Confirm Password TextField ConfirmPasswordTextField.ShouldReturn += (textField) => { ConfirmPasswordTextField.ResignFirstResponder(); return(true); }; ConfirmPasswordTextField.EditingChanged += (o, e) => { ErrorMessageLabel.Hidden = true; }; ConfirmPasswordTextField.ShouldBeginEditing += (textField) => { if (View.Frame.Y >= 0) { bottom = ((float)(RegistrationContainer.Frame.Y + ConfirmPasswordTextField.Frame.Y + ConfirmPasswordTextField.Frame.Height + 10)); } return(true); }; // dissmiss the keyboard when i press return key on Confirm Password TextField EmailTextFieldOfForgetPassword.ShouldReturn += (textField) => { EmailTextFieldOfForgetPassword.ResignFirstResponder(); return(true); }; EmailTextField.KeyboardType = UIKeyboardType.EmailAddress; EmailTextField.AutocorrectionType = UITextAutocorrectionType.No; PasswordTextField.AutocorrectionType = UITextAutocorrectionType.No; FirstNameTextField.ReturnKeyType = UIReturnKeyType.Next; LastNameTextField.AutocorrectionType = UITextAutocorrectionType.No; LastNameTextField.ReturnKeyType = UIReturnKeyType.Next; EmailTextFieldOfRegistration.KeyboardType = UIKeyboardType.EmailAddress; EmailTextFieldOfRegistration.AutocorrectionType = UITextAutocorrectionType.No; EmailTextFieldOfRegistration.ReturnKeyType = UIReturnKeyType.Next; PasswordTextFieldOfRegistration.ReturnKeyType = UIReturnKeyType.Next; ConfirmPasswordTextField.ReturnKeyType = UIReturnKeyType.Next; EmailTextFieldOfForgetPassword.KeyboardType = UIKeyboardType.EmailAddress; EmailTextFieldOfForgetPassword.AutocorrectionType = UITextAutocorrectionType.No; // set up the rounded corner fot the button LoadingIndicator.Hidden = true; LoginButton.Layer.CornerRadius = 4; LoginButton.Layer.MasksToBounds = true; RegistrationButton.Layer.CornerRadius = 4; RegistrationButton.Layer.MasksToBounds = true; RegistrationButton.Enabled = false; ResetPasswordButton.Layer.CornerRadius = 4; ResetPasswordButton.Layer.MasksToBounds = true; ResetPasswordButton.Enabled = false; //DisplayFacebookButton(); //_facebookButton.Layer.CornerRadius = 4; //_facebookButton.Layer.MasksToBounds = true; CreateAccountButton.ContentEdgeInsets = new UIEdgeInsets(5, 0, 5, 5); ForgetPasswordButton.ContentEdgeInsets = new UIEdgeInsets(5, 5, 5, 0); LoginContainer.Hidden = false; RegistrationContainer.Hidden = true; ForgetPasswordContainer.Hidden = true; BackButton.Hidden = true; CreateAccountButton.Hidden = false; ForgetPasswordButton.Hidden = false; ErrorMessageLabel.Hidden = true; ErrorMessageLabel.TextColor = UIColor.FromRGB(255, 76, 56); }
void ReleaseDesignerOutlets() { if (AboutButton != null) { AboutButton.Dispose(); AboutButton = null; } if (btnPickerView != null) { btnPickerView.Dispose(); btnPickerView = null; } if (CountryCodeLabel != null) { CountryCodeLabel.Dispose(); CountryCodeLabel = null; } if (CountryCodeTextField != null) { CountryCodeTextField.Dispose(); CountryCodeTextField = null; } if (CreditsFreeLabel != null) { CreditsFreeLabel.Dispose(); CreditsFreeLabel = null; } if (CreditsUserLabel != null) { CreditsUserLabel.Dispose(); CreditsUserLabel = null; } if (CustomViewScroll != null) { CustomViewScroll.Dispose(); CustomViewScroll = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (EmailTitleLabel != null) { EmailTitleLabel.Dispose(); EmailTitleLabel = null; } if (FirstNameLabel != null) { FirstNameLabel.Dispose(); FirstNameLabel = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (LastNameLabel != null) { LastNameLabel.Dispose(); LastNameLabel = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (LogOutButton != null) { LogOutButton.Dispose(); LogOutButton = null; } if (MaxSizeEmailID != null) { MaxSizeEmailID.Dispose(); MaxSizeEmailID = null; } if (MaxSizeFirstName != null) { MaxSizeFirstName.Dispose(); MaxSizeFirstName = null; } if (MaxSizeName != null) { MaxSizeName.Dispose(); MaxSizeName = null; } if (ModifyUserImageButton != null) { ModifyUserImageButton.Dispose(); ModifyUserImageButton = null; } if (PhoneNumberLabel != null) { PhoneNumberLabel.Dispose(); PhoneNumberLabel = null; } if (PhoneNumberTextField != null) { PhoneNumberTextField.Dispose(); PhoneNumberTextField = null; } if (SaveButton != null) { SaveButton.Dispose(); SaveButton = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (UpdatePasswordButton != null) { UpdatePasswordButton.Dispose(); UpdatePasswordButton = null; } if (UserImageView != null) { UserImageView.Dispose(); UserImageView = null; } }
void ReleaseDesignerOutlets() { if (AddressLine12StackView != null) { AddressLine12StackView.Dispose(); AddressLine12StackView = null; } if (AddressLine1TextField != null) { AddressLine1TextField.Dispose(); AddressLine1TextField = null; } if (AddressLine2TextField != null) { AddressLine2TextField.Dispose(); AddressLine2TextField = null; } if (AliasTextField != null) { AliasTextField.Dispose(); AliasTextField = null; } if (CityStateCountryStackView != null) { CityStateCountryStackView.Dispose(); CityStateCountryStackView = null; } if (CityTextField != null) { CityTextField.Dispose(); CityTextField = null; } if (ConsentEmailMailStackView != null) { ConsentEmailMailStackView.Dispose(); ConsentEmailMailStackView = null; } if (ConsentEmailSwitch != null) { ConsentEmailSwitch.Dispose(); ConsentEmailSwitch = null; } if (ConsentMailSwitch != null) { ConsentMailSwitch.Dispose(); ConsentMailSwitch = null; } if (ConsentPhoneContactPrefStackView != null) { ConsentPhoneContactPrefStackView.Dispose(); ConsentPhoneContactPrefStackView = null; } if (ConsentPhoneSwitch != null) { ConsentPhoneSwitch.Dispose(); ConsentPhoneSwitch = null; } if (ConsentTextSwitch != null) { ConsentTextSwitch.Dispose(); ConsentTextSwitch = null; } if (ContactPreferenceTextField != null) { ContactPreferenceTextField.Dispose(); ContactPreferenceTextField = null; } if (CountryTextField != null) { CountryTextField.Dispose(); CountryTextField = null; } if (CountyLabel != null) { CountyLabel.Dispose(); CountyLabel = null; } if (CountyTextField != null) { CountyTextField.Dispose(); CountyTextField = null; } if (CountyZipStackView != null) { CountyZipStackView.Dispose(); CountyZipStackView = null; } if (EmailErrorLabel != null) { EmailErrorLabel.Dispose(); EmailErrorLabel = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (ExcludeFollowUpSwitch != null) { ExcludeFollowUpSwitch.Dispose(); ExcludeFollowUpSwitch = null; } if (ExcludeReasonTextField != null) { ExcludeReasonTextField.Dispose(); ExcludeReasonTextField = null; } if (ExcludeStackView != null) { ExcludeStackView.Dispose(); ExcludeStackView = null; } if (FirstNameErrorLabel != null) { FirstNameErrorLabel.Dispose(); FirstNameErrorLabel = null; } if (FirstNameLabel != null) { FirstNameLabel.Dispose(); FirstNameLabel = null; } if (FirstNameTextField != null) { FirstNameTextField.Dispose(); FirstNameTextField = null; } if (HomePhoneEmailStackView != null) { HomePhoneEmailStackView.Dispose(); HomePhoneEmailStackView = null; } if (HomePhoneErrorLabel != null) { HomePhoneErrorLabel.Dispose(); HomePhoneErrorLabel = null; } if (HomePhoneTextField != null) { HomePhoneTextField.Dispose(); HomePhoneTextField = null; } if (LastNameErrorLabel != null) { LastNameErrorLabel.Dispose(); LastNameErrorLabel = null; } if (LastNameLabel != null) { LastNameLabel.Dispose(); LastNameLabel = null; } if (LastNameTextField != null) { LastNameTextField.Dispose(); LastNameTextField = null; } if (MiddleLastStackView != null) { MiddleLastStackView.Dispose(); MiddleLastStackView = null; } if (MiddleNameTextField != null) { MiddleNameTextField.Dispose(); MiddleNameTextField = null; } if (MobilePhoneErrorLabel != null) { MobilePhoneErrorLabel.Dispose(); MobilePhoneErrorLabel = null; } if (MobilePhoneTextField != null) { MobilePhoneTextField.Dispose(); MobilePhoneTextField = null; } if (MobileWorkPhoneStackView != null) { MobileWorkPhoneStackView.Dispose(); MobileWorkPhoneStackView = null; } if (PrefixFirstStackView != null) { PrefixFirstStackView.Dispose(); PrefixFirstStackView = null; } if (PrefixTextField != null) { PrefixTextField.Dispose(); PrefixTextField = null; } if (StateCountryLabel != null) { StateCountryLabel.Dispose(); StateCountryLabel = null; } if (StateTextField != null) { StateTextField.Dispose(); StateTextField = null; } if (SuffixAliasStackView != null) { SuffixAliasStackView.Dispose(); SuffixAliasStackView = null; } if (SuffixTextField != null) { SuffixTextField.Dispose(); SuffixTextField = null; } if (TrafficDetailTextField != null) { TrafficDetailTextField.Dispose(); TrafficDetailTextField = null; } if (TrafficSourceDetailError != null) { TrafficSourceDetailError.Dispose(); TrafficSourceDetailError = null; } if (TrafficSourceDetailLabel != null) { TrafficSourceDetailLabel.Dispose(); TrafficSourceDetailLabel = null; } if (TrafficSourceLabel != null) { TrafficSourceLabel.Dispose(); TrafficSourceLabel = null; } if (TrafficSourceTextField != null) { TrafficSourceTextField.Dispose(); TrafficSourceTextField = null; } if (TrafficStackView != null) { TrafficStackView.Dispose(); TrafficStackView = null; } if (ValidationErrorsLabel != null) { ValidationErrorsLabel.Dispose(); ValidationErrorsLabel = null; } if (WorkExtentionTextField != null) { WorkExtentionTextField.Dispose(); WorkExtentionTextField = null; } if (WorkPhoneErrorLabel != null) { WorkPhoneErrorLabel.Dispose(); WorkPhoneErrorLabel = null; } if (WorkPhoneTextField != null) { WorkPhoneTextField.Dispose(); WorkPhoneTextField = null; } if (ZipTextField != null) { ZipTextField.Dispose(); ZipTextField = null; } }