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