20 writes to FirstDayOfWeek
System.Windows.Forms.Tests (19)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
137
control.
FirstDayOfWeek
= Day.Sunday;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
135
control.
FirstDayOfWeek
= Day.Sunday;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (1)
149
control.
FirstDayOfWeek
= Day.Monday;
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (1)
285
monthCalendar.
FirstDayOfWeek
= Day.Monday;
System\Windows\Forms\MonthCalendarTests.cs (15)
813
FirstDayOfWeek
= value
819
calendar.
FirstDayOfWeek
= value;
830
FirstDayOfWeek
= Day.Monday
833
calendar.
FirstDayOfWeek
= value;
838
calendar.
FirstDayOfWeek
= value;
856
calendar.
FirstDayOfWeek
= value;
864
calendar.
FirstDayOfWeek
= value;
885
FirstDayOfWeek
= Day.Monday
895
calendar.
FirstDayOfWeek
= value;
903
calendar.
FirstDayOfWeek
= value;
916
Assert.Throws<InvalidEnumArgumentException>("FirstDayOfWeek", () => calendar.
FirstDayOfWeek
= value);
1139
FirstDayOfWeek
= Day.Default
1156
FirstDayOfWeek
= Day.Tuesday
4189
using MonthCalendar calendar = new() { Size = new Size(600, 600),
FirstDayOfWeek
= Day.Sunday };
4367
monthCalendar.
FirstDayOfWeek
= Day.Monday;
WinFormsControlsTest (1)
Calendar.cs (1)
58
monthCalendar1.
FirstDayOfWeek
= (Day)daysOfWeekComboBox.SelectedIndex;
12 references to FirstDayOfWeek
System.Windows.Forms (2)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
382
throw new InvalidEnumArgumentException(nameof(
FirstDayOfWeek
), (int)value, typeof(Day));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
201
internal DayOfWeek FirstDayOfWeek => this.TryGetOwnerAs(out MonthCalendar? owner) ? CastDayToDayOfWeek(owner.
FirstDayOfWeek
) : CastDayToDayOfWeek(Day.Default);
System.Windows.Forms.Tests (9)
System\Windows\Forms\MonthCalendarTests.cs (9)
79
Assert.Equal(Day.Default, control.
FirstDayOfWeek
);
815
Assert.Equal(value, calendar.
FirstDayOfWeek
);
820
Assert.Equal(value, calendar.
FirstDayOfWeek
);
834
Assert.Equal(value, calendar.
FirstDayOfWeek
);
839
Assert.Equal(value, calendar.
FirstDayOfWeek
);
857
Assert.Equal(value, calendar.
FirstDayOfWeek
);
865
Assert.Equal(value, calendar.
FirstDayOfWeek
);
896
Assert.Equal(value, calendar.
FirstDayOfWeek
);
904
Assert.Equal(value, calendar.
FirstDayOfWeek
);
WinFormsControlsTest (1)
Calendar.cs (1)
14
daysOfWeekComboBox.SelectedIndex = (int)monthCalendar1.
FirstDayOfWeek
;