4 writes to MaxDate
System.Windows.Forms (1)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1233MaxDate = MaximumDateTime;
System.Windows.Forms.Tests (3)
System\Windows\Forms\DateTimePickerTests.cs (3)
371_dateTimePicker.MaxDate = expectedDate; 375_dateTimePicker.MaxDate = initialMaxDate; 384Action act = () => _dateTimePicker.MaxDate = DateTime.Parse(value);
9 references to MaxDate
System.Windows.Forms (4)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
874if ((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)
91Assert.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); 374DateTime initialMaxDate = _dateTimePicker.MaxDate; 376_dateTimePicker.MaxDate.Should().Be(initialMaxDate);