private void prepareViews()
        {
            ResetPasswordButton.SetTitleColor(
                Color.Login.DisabledButtonColor.ToNativeColor(),
                UIControlState.Disabled
                );

            EmailTextField.ShouldReturn = _ =>
            {
                ViewModel.ResetCommand.Execute();
                return(false);
            };

            ActivityIndicator.StartAnimation();

            prepareBackbutton();
        }
示例#2
0
        private void prepareViews()
        {
            NavigationController.NavigationBarHidden = false;

            ResetPasswordButton.SetTitleColor(
                Core.UI.Helper.Colors.Login.DisabledButtonColor.ToNativeColor(),
                UIControlState.Disabled
                );

            EmailTextField.Rx().ShouldReturn()
            .Subscribe(ViewModel.Reset.Inputs)
            .DisposedBy(DisposeBag);

            ActivityIndicator.StartSpinning();

            ErrorLabel.Hidden = true;
        }