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