15 references to SetDate
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
30
_monthCalendar.
SetDate
(dateTime.Equals(DateTime.MinValue) ? DateTime.Today : dateTime);
System.Windows.Forms.Tests (11)
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (3)
82
monthCalendar.
SetDate
(dt);
311
monthCalendar.
SetDate
(focusedDate);
390
calendar.
SetDate
(DateTime.Today);
System\Windows\Forms\MonthCalendarTests.cs (8)
3967
calendar.
SetDate
(date);
3975
calendar.
SetDate
(date);
3996
calendar.
SetDate
(date);
4007
calendar.
SetDate
(date);
4022
calendar.
SetDate
(calendar.MinDate.AddTicks(-1));
4027
Assert.Throws<ArgumentOutOfRangeException>("date", () => calendar.
SetDate
(calendar.MinDate.AddTicks(-1)));
4034
calendar.
SetDate
(calendar.MaxDate.AddTicks(1));
4039
Assert.Throws<ArgumentOutOfRangeException>("date", () => calendar.
SetDate
(calendar.MaxDate.AddDays(1)));
System.Windows.Forms.UI.IntegrationTests (3)
MonthCalendarTests.cs (3)
88
calendar.
SetDate
(s_currentDate);
110
calendar.
SetDate
(s_currentDate);
135
calendar.
SetDate
(givenDate);