示例#1
0
        public static DatePickerFragment NewInstance([NonNull] DateTime currentDate, Action <DateTime> onDateSelected)
        {
            DatePickerFragment frag = new DatePickerFragment
            {
                _currentDate         = currentDate,
                _dateSelectedHandler = onDateSelected
            };

            return(frag);
        }
        private void DateToSelect_OnClick(object sender, EventArgs eventArgs)
        {
            var frag = DatePickerFragment.NewInstance(ViewModel.DateEnd, time => ViewModel.DateEnd = time);

            frag.Show(FragmentManager, string.Empty);
        }