Пример #1
0
        private void ExecuteOkCommand(Object parameter)
        {
            var regView      = new RegistrationFormView();
            var regViewModel = new RegistrationViewModel();

            regView.DataContext = regViewModel;

            NavigationHelper.NavigateTo(regView);
        }
Пример #2
0
        protected override BaseFormView CreateFormView()
        {
            var form = new RegistrationFormView
            {
                Title = messages.RegistrationFormTitle,
                EmailFieldPlaceHolder                = messages.EmailFieldPlaceHolder,
                UserNameFieldPlaceHolder             = messages.UserNameFieldPlaceHolder,
                PasswordFieldPlaceHolder             = messages.PasswordFieldPlaceHolder,
                PasswordConfirmationFieldPlaceHolder = messages.PasswordConfirmationFieldPlaceHolder,
                RegisterButtonTitle = messages.RegisterButtonTitle
            };

            form.RegisterClick += RegisterClick;

            return(form);
        }
Пример #3
0
 void Failed(RegistrationFormView form, LoginScreenFaultDetails details)
 {
     InvokeOnMainThread(() => {
         StopActivityAnimation();
         if (!String.IsNullOrEmpty(details.EmailErrorMessage))
         {
             form.ShowBubbleForEmail(details.EmailErrorMessage);
         }
         if (!String.IsNullOrEmpty(details.UserNameErrorMessage))
         {
             form.ShowBubbleForUserName(details.UserNameErrorMessage);
         }
         if (!String.IsNullOrEmpty(details.PasswordErrorMessage))
         {
             form.ShowBubbleForPassword(details.PasswordErrorMessage);
         }
         if (!String.IsNullOrEmpty(details.CommonErrorMessage))
         {
             ShowAlert(messages.RegistrationCommonErrorTitle, details.CommonErrorMessage, messages.AlertCancelButtonTitle);
         }
     });
 }