void UpdateMaximumDate()
 {
     if (_dialog != null)
     {
         _dialog.DatePicker.MaxDate = (long)DatePickerDialog.GetMaximumDate(Element).ToUniversalTime().Subtract(DateTime.MinValue.AddYears(1969)).TotalMilliseconds;
     }
 }
Пример #2
0
        void Done()
        {
            var date = _picker.Date.ToDateTime().Date;

            DatePickerDialog.SetDate(Element, date);
            _preSelectedDate = _picker.Date;
        }
Пример #3
0
        void UpdateDate()
        {
            var date = DatePickerDialog.GetDate(Element).ToNSDate();

            _picker.SetDate(date, false);
            _preSelectedDate = date;
        }
        void CreateDialog()
        {
            var date = DatePickerDialog.GetDate(Element);

            _dialog = new ADatePickerDialog(_view.Context, (o, e) =>
            {
                DatePickerDialog.SetDate(Element, e.Date);
                _view.ClearFocus();
                _dialog.CancelEvent -= OnCancelButtonClicked;

                _dialog = null;
            }, date.Year, date.Month - 1, date.Day);

            _dialog.SetCanceledOnTouchOutside(true);
        }
Пример #5
0
 void UpdateMinimumDate()
 {
     _picker.MinimumDate = DatePickerDialog.GetMinimumDate(Element).ToNSDate();
 }