Example #1
0
        public static DatePickerFragment NewInstance(Action<int, int, int> OnDateSet, int year, int monthOfYear, int dayOfMonth)
        {
            var fragment = new DatePickerFragment();
            fragment._onDateSet = OnDateSet;

            var args = new Bundle();
            args.PutInt("year", year);
            args.PutInt("monthOfYear", monthOfYear - 1);
            args.PutInt("dayOfMonth", dayOfMonth);
            fragment.Arguments = args;

            return fragment;
        }
Example #2
0
        public static DatePickerFragment NewInstance(Action <int, int, int> OnDateSet, int year, int monthOfYear, int dayOfMonth)
        {
            var fragment = new DatePickerFragment();

            fragment._onDateSet = OnDateSet;

            var args = new Bundle();

            args.PutInt("year", year);
            args.PutInt("monthOfYear", monthOfYear - 1);
            args.PutInt("dayOfMonth", dayOfMonth);
            fragment.Arguments = args;

            return(fragment);
        }