1 write to _maxSelectionCount
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
495_maxSelectionCount = value;
11 references to _maxSelectionCount
System.Windows.Forms (11)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (11)
477get => _maxSelectionCount; 482if (value == _maxSelectionCount) 657if ((value - _selectionStart).Days >= _maxSelectionCount) 659_selectionStart = value.AddDays(1 - _maxSelectionCount); 694if ((_selectionEnd - value).Days >= _maxSelectionCount) 696_selectionEnd = value.AddDays(_maxSelectionCount - 1); 1360if (_maxSelectionCount != DefaultMaxSelectionCount) 1362PInvokeCore.SendMessage(this, PInvoke.MCM_SETMAXSELCOUNT, (WPARAM)_maxSelectionCount); 1851if ((date2 - date1).Days >= _maxSelectionCount) 1856date1 = date2.AddDays(1 - _maxSelectionCount); 1861date2 = date1.AddDays(_maxSelectionCount - 1);