public TimeSliderDialog(CustomTimeSliderButton parent) { InitializeComponent(); m_parent = parent; ITimeExtent timeExtent = m_parent.GetTimeExtent(); m_datePicker.MinDate = new DateTime(timeExtent.StartTime.QueryTicks()); m_datePicker.MaxDate = new DateTime(timeExtent.EndTime.QueryTicks()); m_datePicker.Value = m_datePicker.MinDate; }