void UpdateMaximumDate() { if (_dialog != null) { _dialog.DatePicker.MaxDate = (long)DatePickerDialog.GetMaximumDate(Element).ToUniversalTime().Subtract(DateTime.MinValue.AddYears(1969)).TotalMilliseconds; } }
void Done() { var date = _picker.Date.ToDateTime().Date; DatePickerDialog.SetDate(Element, date); _preSelectedDate = _picker.Date; }
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); }
void UpdateMinimumDate() { _picker.MinimumDate = DatePickerDialog.GetMinimumDate(Element).ToNSDate(); }