23 writes to Value
PresentationUI (3)
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
35
_dateTimePicker.
Value
= DateTime.Now.AddDays(10);
MS\Internal\Documents\RMPublishingDialog.cs (2)
55
datePickerValidUntil.
Value
= DateTime.Today.AddDays(1);
117
datePickerValidUntil.
Value
= localValidUntil;
System.Windows.Forms (3)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
617
Value
= _maxDateTime;
673
Value
= _minDateTime;
835
Value
= DateTime.Parse(value, CultureInfo.CurrentCulture);
System.Windows.Forms.Tests (17)
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
107
dateTimePicker.
Value
= dt;
System\Windows\Forms\DateTimePickerTests.cs (16)
335
_dateTimePicker.
Value
= new(2021, 12, 31);
422
_dateTimePicker.
Value
= DateTimePicker.MinimumDateTime.AddDays(5);
489
_dateTimePicker.
Value
= initialDate;
492
_dateTimePicker.
Value
= newDate;
495
_dateTimePicker.
Value
= DateTimePicker.MinimumDateTime;
498
_dateTimePicker.
Value
= DateTimePicker.MaximumDateTime;
507
Action act = () => _dateTimePicker.
Value
= DateTime.Parse(value);
655
_dateTimePicker.
Value
= DateTime.Now;
659
_dateTimePicker.
Value
= DateTime.Now.AddDays(1);
917
dateTimePicker.
Value
= dt;
929
dateTimePicker.
Value
= dt;
942
dateTimePicker.
Value
= dt;
955
dateTimePicker.
Value
= dt;
969
dateTimePicker.
Value
= dt;
983
dateTimePicker.
Value
= dt;
997
dateTimePicker.
Value
= dt;
24 references to Value
PresentationUI (2)
MS\Internal\Documents\RequestedSignatureDialog.cs (1)
64
_documentSignatureManager.OnAddRequestSignature(sigResources,_dateTimePicker.
Value
);
MS\Internal\Documents\RMPublishingDialog.cs (1)
178
return datePickerValidUntil.
Value
.ToUniversalTime();
System.Windows.Forms (12)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (12)
18
[DefaultProperty(nameof(
Value
))]
20
[DefaultBindingProperty(nameof(
Value
))]
327
/// Indicates whether the <see cref="
Value
"/> property has been set.
615
if (
Value
> _maxDateTime)
671
if (
Value
< _minDateTime)
864
bool valueChanged = !DateTime.Equals(
Value
, value);
881
nameof(
Value
),
976
SYSTEMTIME systemTime = (SYSTEMTIME)
Value
;
1000
_value =
Value
;
1245
/// Resets the <see cref="
Value
"/> property to its default value.
1417
/// Determines if the <see cref="
Value
"/> property needs to be persisted.
1432
public override string ToString() => $"{base.ToString()}, Value: {
Value
:G}";
System.Windows.Forms.Tests (6)
System\Windows\Forms\DateTimePickerTests.cs (6)
119
Assert.True(control.
Value
> DateTime.MinValue);
427
_dateTimePicker.
Value
.Should().Be(newMinDate);
490
_dateTimePicker.
Value
.Should().Be(initialDate);
493
_dateTimePicker.
Value
.Should().Be(newDate);
496
_dateTimePicker.
Value
.Should().Be(DateTimePicker.MinimumDateTime);
499
_dateTimePicker.
Value
.Should().Be(DateTimePicker.MaximumDateTime);
WinFormsControlsTest (4)
Calendar.cs (4)
36
if (minDateDateTimePicker.
Value
> monthCalendar1.MaxDate)
42
monthCalendar1.MinDate = minDateDateTimePicker.
Value
;
47
if (maxDateDateTimePicker.
Value
< monthCalendar1.MinDate)
53
monthCalendar1.MaxDate = maxDateDateTimePicker.
Value
;