4 writes to MaxDate
System.Windows.Forms (1)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1233
MaxDate
= MaximumDateTime;
System.Windows.Forms.Tests (3)
System\Windows\Forms\DateTimePickerTests.cs (3)
371
_dateTimePicker.
MaxDate
= expectedDate;
375
_dateTimePicker.
MaxDate
= initialMaxDate;
384
Action act = () => _dateTimePicker.
MaxDate
= DateTime.Parse(value);
9 references to MaxDate
System.Windows.Forms (4)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
874
if ((value < MinDate) || (value >
MaxDate
))
884
$"'{nameof(
MaxDate
)}'"));
1229
/// Resets the <see cref="
MaxDate
"/> property to its default value.
1401
/// Determines if the <see cref="
MaxDate
"/> property needs to be persisted.
System.Windows.Forms.Tests (5)
System\Windows\Forms\DateTimePickerTests.cs (5)
91
Assert.Equal(new DateTime(9998, 12, 31), control.
MaxDate
);
368
_dateTimePicker.
MaxDate
.ToString().Should().Be("12/31/9998 12:00:00 AM");
372
_dateTimePicker.
MaxDate
.Should().Be(expectedDate);
374
DateTime initialMaxDate = _dateTimePicker.
MaxDate
;
376
_dateTimePicker.
MaxDate
.Should().Be(initialMaxDate);