Esempio n. 1
0
        /**
         * Factory method for this fragment class. Constructs a new fragment for the given page number.
         */
        public static ScreenSlidePageFragment create(int pageNumber, bool isAttendanceStart)
        {
            ScreenSlidePageFragment fragment = new ScreenSlidePageFragment();
            Bundle args = new Bundle();

            args.PutInt(ARG_PAGE, pageNumber);
            args.PutBoolean(ARG_IS_ATTENDANCE_START, isAttendanceStart);
            fragment.Arguments = args;
            return(fragment);
        }
            public override V4App.Fragment GetItem(int position)
            {
                switch (position)
                {
                case 0:
                    return(PharmacyFragment.create(PharmacyUUID));

                case 1:
                    return(EmployeeFragment.create(PharmacyUUID));

                case 2:
                    return(InfoFragment.create(PharmacyUUID, AttendanceLastUUID));

                case 3:
                    return(PhotoFragment.create(PharmacyUUID, AttendanceLastUUID));

                default:
                    return(ScreenSlidePageFragment.create(position, false));
                }
            }