예제 #1
0
        private void ShowRegistrationFragment(User user, string code)
        {
            var trans = FragmentManager.BeginTransaction();
            var registrationFragment = RegistrationFragment.newInstance(user, code);

            trans.Replace(Resource.Id.LoginFragmentContainer, registrationFragment);
            trans.AddToBackStack("CodeFragment");
            trans.Commit();
        }
예제 #2
0
        public static RegistrationFragment newInstance(User user, string code)
        {
            RegistrationFragment fragment = new RegistrationFragment();
            Bundle args = new Bundle();

            fragment.Arguments = args;
            args.PutString("name", user.Name);
            args.PutString("surname", user.Surname);
            args.PutString("patronymic", user.Patronymic);
            args.PutString("email", user.Email);
            args.PutString("code", code);
            return(fragment);
        }