public override Android.Support.V4.App.Fragment GetItem(int position)
            {
                switch (position)
                {
                case 0:
                    DateFragment dateFragment = DateFragment.newInstance(
                        _theme,
                        _calendar.Get(CalendarField.Year),
                        _calendar.Get(CalendarField.Month),
                        _calendar.Get(CalendarField.DayOfMonth),
                        _minDate,
                        _maxDate);
                    dateFragment.SetTargetFragment(slideDateTimeDialogFragment, 100);
                    return(dateFragment);

                case 1:
                    TimeFragment timeFragment = TimeFragment.NewInstance(
                        _theme,
                        _calendar.Get(CalendarField.HourOfDay),
                        _calendar.Get(CalendarField.Minute),
                        _isClientSpecified24HourTime,
                        _is24HourTime);
                    timeFragment.SetTargetFragment(slideDateTimeDialogFragment, 200);
                    return(timeFragment);

                default:
                    return(null);
                }
            }
		/**
     * Return an instance of TimeFragment with its bundle filled with the
     * constructor arguments. The values in the bundle are retrieved in
     * {@link #onCreateView()} below to properly initialize the TimePicker.
     *
     * @param theme
     * @param hour
     * @param minute
     * @param isClientSpecified24HourTime
     * @param is24HourTime
     * @return
     */
		public static TimeFragment NewInstance(int Theme, int Hour, int Minute,bool IsClientSpecified24HourTime, bool Is24HourTime)
		{
			TimeFragment timeFragment = new TimeFragment();

			Bundle bundle = new Bundle();
			bundle.PutInt("theme", Theme);
			bundle.PutInt("hour", Hour);
			bundle.PutInt("minute", Minute);
			bundle.PutBoolean("isClientSpecified24HourTime", IsClientSpecified24HourTime);
			bundle.PutBoolean("is24HourTime", Is24HourTime);
			timeFragment.Arguments=bundle;

			return timeFragment;
		}
        /**
         * Return an instance of TimeFragment with its bundle filled with the
         * constructor arguments. The values in the bundle are retrieved in
         * {@link #onCreateView()} below to properly initialize the TimePicker.
         *
         * @param theme
         * @param hour
         * @param minute
         * @param isClientSpecified24HourTime
         * @param is24HourTime
         * @return
         */
        public static TimeFragment NewInstance(int Theme, int Hour, int Minute, bool IsClientSpecified24HourTime, bool Is24HourTime)
        {
            TimeFragment timeFragment = new TimeFragment();

            Bundle bundle = new Bundle();

            bundle.PutInt("theme", Theme);
            bundle.PutInt("hour", Hour);
            bundle.PutInt("minute", Minute);
            bundle.PutBoolean("isClientSpecified24HourTime", IsClientSpecified24HourTime);
            bundle.PutBoolean("is24HourTime", Is24HourTime);
            timeFragment.Arguments = bundle;

            return(timeFragment);
        }