Пример #1
0
        private void ShowStudentInfo(string studentId)
        {
            var studentDetails = StudentProfileFragment.NewInstance(studentId);

            this.FragmentManager
            .BeginTransaction()
            .Replace(Resource.Id.main_container, studentDetails)
            .AddToBackStack(null)
            .Commit();
        }
Пример #2
0
        public static StudentProfileFragment NewInstance(string studentId)
        {
            var bundle = new Bundle();

            bundle.PutString(IntentConstants.StudentId, studentId);
            var studentProfileFragment = new StudentProfileFragment()
            {
                Arguments = bundle
            };

            return(studentProfileFragment);
        }