Exemple #1
0
        protected override async void Next(object param)
        {
            MsgVis = false;

            if (validator.IsCorrect)
            {
                IsSplashVisible = true;
                registerService.SetupPass(Phone, PasswordBox.Password);

                int id = await registerService.RegisterAsync();

                IsSplashVisible = false;

                if (id > -1)
                {
                    registerService.Clear();
                    pageservice.Next();
                }
                else
                {
                    MsgVis = true;
                    Msg    = registerService.ErrorMessage;
                }
            }
            else
            {
                MsgVis = true;
                Msg    = validator.ErrorMessage;
            }
        }
 protected override void Back(object param)
 {
     registerService.Clear();
     pageservice.ChangeToLastByPool(Rules.Pages.MainPool);
 }