private void ExecuteOkCommand(Object parameter) { var regView = new RegistrationFormView(); var regViewModel = new RegistrationViewModel(); regView.DataContext = regViewModel; NavigationHelper.NavigateTo(regView); }
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); }
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); } }); }