public CalendarDateTimeElement(string caption, DateTime date, PickerTypes pickerType) : base(caption) { PickerType = pickerType; DateValue = date; Value = DateValue.ToShortDateString(); }