2 writes to Start
System.Windows.Forms (2)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
90
dateRange.
Start
= displayRange.Start;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1259
Start
= (DateTime)times[0],
57 references to Start
System.Windows.Forms (29)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (3)
88
if (_calendarIndex == 0 && displayRange.
Start
< dateRange.
Start
)
90
dateRange.Start = displayRange.
Start
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (8)
78
DateTime cellDate = DateRange.
Start
;
169
MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_MONTH => $"{DateRange.
Start
:D}",
170
MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_YEAR => $"{DateRange.
Start
:Y}",
171
MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_DECADE => $"{DateRange.
Start
:yyy}",
172
MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_CENTURY => $"{DateRange.
Start
:yyy} - {DateRange.End:yyy}",
192
_monthCalendarAccessibleObject.SetSelectionRange(DateRange.
Start
, DateRange.End);
212
&& DateRange.
Start
>= _monthCalendarAccessibleObject.SelectionRange.
Start
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
63
&& _monthCalendarAccessibleObject.MinDate < displayRange.
Start
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (2)
134
string weekNumber = GetWeekNumber(cell.DateRange.
Start
);
224
_rowIndex, -1, GetWeekNumber(CellsAccessibleObjects.First.Value.DateRange.
Start
));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (7)
342
DateTime currentDate = displayRange.
Start
;
355
int currentMonthIndex = GetIndexInMonths(displayRange.
Start
, currentDate);
713
set => SetSelectionRange(value.
Start
, value.End);
1089
DateTime start = range.
Start
;
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 (6)
334
DateTime calendarStart = calendar.DateRange.
Start
;
364
if (date >= cellRange.
Start
&& date <= cellRange.End)
581
return DateTime.Equals(range.
Start
.Date, range.End.Date)
582
? $"{range.
Start
:D}"
583
: $"{range.
Start
:D} - {range.End:D}";
608
return $"{range.
Start
:yyyy} - {range.End:yyyy}";
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
117
return range.
Start
;
128
return new InstanceDescriptor(ctor, new object[] { range.
Start
, range.End });
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
154
Assert.Equal(expected.
Start
, calendar.DateRange.Start);
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (4)
202
Assert.Equal(expected.
Start
, actual.
Start
);
378
actual.
Start
.Should().Be(expected.
Start
);
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (4)
59
range.
Start
.Should().Be(DateTime.Parse(expectedStart));
69
range.
Start
.Should().Be(value);
108
result.
Start
.Should().Be(new DateTime(2022, 1, 1));
140
range.
Start
.Should().Be(startTime);
System\Windows\Forms\MonthCalendarTests.cs (17)
115
Assert.Equal(DateTime.Now.Date, control.SelectionRange.
Start
);
2140
Assert.Equal(expectedSelectionStart, calendar.SelectionRange.
Start
);
2149
Assert.Equal(expectedSelectionStart, calendar.SelectionRange.
Start
);
2171
Assert.Equal(expectedSelectionStart, calendar.SelectionRange.
Start
);
2183
Assert.Equal(expectedSelectionStart, calendar.SelectionRange.
Start
);
3968
Assert.Equal(date.Date, calendar.SelectionRange.
Start
);
3976
Assert.Equal(date.Date, calendar.SelectionRange.
Start
);
3997
Assert.Equal(date.Date, calendar.SelectionRange.
Start
);
4008
Assert.Equal(date.Date, calendar.SelectionRange.
Start
);
4075
Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.
Start
);
4083
Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.
Start
);
4104
Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.
Start
);
4115
Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.
Start
);
4198
Assert.Equal(new DateTime(2021, 8, 29), displayRange.
Start
);
4202
int currentMonthIndex = (currentDate.Year - displayRange.
Start
.Year) * MonthsInYear + currentDate.Month - displayRange.
Start
.Month;
4253
copiedRange.
Start
.Should().Be(startDate);
System.Windows.Forms.UI.IntegrationTests (2)
MonthCalendarTests.cs (2)
137
Assert.Equal(new DateTime(givenYear, givenMonth, 1), calendar.GetDisplayRange(visible: true).
Start
);
157
Assert.Equal(expectedDate, calendar.GetDisplayRange(visible: true).
Start
);