2 writes to End
System.Windows.Forms (2)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
96dateRange.End = displayRange.End;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1260End = (DateTime)times[1]
44 references to End
System.Windows.Forms (20)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (3)
94&& displayRange.End > dateRange.End) 96dateRange.End = displayRange.End;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (4)
172MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_CENTURY => $"{DateRange.Start:yyy} - {DateRange.End:yyy}", 192_monthCalendarAccessibleObject.SetSelectionRange(DateRange.Start, DateRange.End); 213&& DateRange.End <= _monthCalendarAccessibleObject.SelectionRange.End)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
73&& _monthCalendarAccessibleObject.MaxDate > displayRange.End;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (6)
343while (currentDate <= displayRange.End) 713set => SetSelectionRange(value.Start, value.End); 1096if (DateTime.Compare(date, start) >= 0 && DateTime.Compare(date, range.End) <= 0) 1270=> GetIndexInMonths(displayRange.Start, displayRange.End) + 1; 1986if (_currentDisplayRange.Start != newRange.Start || _currentDisplayRange.End != newRange.End)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (5)
335DateTime calendarEnd = calendar.DateRange.End; 364if (date >= cellRange.Start && date <= cellRange.End) 581return DateTime.Equals(range.Start.Date, range.End.Date) 583: $"{range.Start:D} - {range.End:D}"; 608return $"{range.Start:yyyy} - {range.End:yyyy}";
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
128return new InstanceDescriptor(ctor, new object[] { range.Start, range.End });
System.Windows.Forms.Tests (24)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
155Assert.Equal(expected.End, calendar.DateRange.End);
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (4)
203Assert.Equal(expected.End, actual.End); 379actual.End.Should().Be(expected.End);
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (4)
60range.End.Should().Be(DateTime.Parse(expectedEnd)); 70range.End.Should().Be(value); 109result.End.Should().Be(new DateTime(2022, 12, 31)); 141range.End.Should().Be(endTime);
System\Windows\Forms\MonthCalendarTests.cs (15)
116Assert.Equal(DateTime.Now.Date, control.SelectionRange.End); 2141Assert.Equal(expectedSelectionEnd, calendar.SelectionRange.End); 2150Assert.Equal(expectedSelectionEnd, calendar.SelectionRange.End); 2172Assert.Equal(expectedSelectionEnd, calendar.SelectionRange.End); 2184Assert.Equal(expectedSelectionEnd, calendar.SelectionRange.End); 3969Assert.Equal(date.Date, calendar.SelectionRange.End); 3977Assert.Equal(date.Date, calendar.SelectionRange.End); 3998Assert.Equal(date.Date, calendar.SelectionRange.End); 4009Assert.Equal(date.Date, calendar.SelectionRange.End); 4076Assert.Equal(expectedSelectionEnd.Date, calendar.SelectionRange.End); 4084Assert.Equal(expectedSelectionEnd.Date, calendar.SelectionRange.End); 4105Assert.Equal(expectedSelectionEnd.Date, calendar.SelectionRange.End); 4116Assert.Equal(expectedSelectionEnd.Date, calendar.SelectionRange.End); 4199Assert.Equal(new DateTime(2022, 9, 10), displayRange.End); 4254copiedRange.End.Should().Be(endDate);