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(); }
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); }