16 references to MinimumDateTime
System.Windows.Forms (7)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (5)
559
DateTime minSupportedDate =
MinimumDateTime
;
659
if (value <
MinimumDateTime
)
664
string.Format(SR.DateTimePickerMinDate, FormatDateTime(
MinimumDateTime
)));
1241
MinDate =
MinimumDateTime
;
1413
return _minDateTime !=
MinimumDateTime
&& _minDateTime != DateTime.MinValue;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (2)
517
ArgumentOutOfRangeException.ThrowIfLessThan(value, DateTimePicker.
MinimumDateTime
);
1928
=> _minDate != DateTimePicker.
MinimumDateTime
&& _minDate != DateTime.MinValue;
System.Windows.Forms.Tests (8)
System\Windows\Forms\DateTimePickerTests.cs (8)
404
DateTime expectedDate = DateTimePicker.
MinimumDateTime
.AddDays(1);
415
act = () => _dateTimePicker.MinDate = DateTimePicker.
MinimumDateTime
.AddDays(-1);
422
_dateTimePicker.Value = DateTimePicker.
MinimumDateTime
.AddDays(5);
423
DateTime newMinDate = DateTimePicker.
MinimumDateTime
.AddDays(10);
436
DateTimePicker.
MinimumDateTime
.Should().BeOnOrAfter(new DateTime(1753, 1, 1, 0, 0, 0));
438
DateTime result = DateTimePicker.
MinimumDateTime
;
495
_dateTimePicker.Value = DateTimePicker.
MinimumDateTime
;
496
_dateTimePicker.Value.Should().Be(DateTimePicker.
MinimumDateTime
);
WinFormsControlsTest (1)
Calendar.cs (1)
63
monthCalendar1.MinDate =
MinimumDateTime
;