44 references to ErrorBlinkStyle
System.Windows.Forms (17)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (3)
116if (_error.Equals(value) && _provider.BlinkStyle != ErrorBlinkStyle.AlwaysBlink) 135if (_provider.BlinkStyle != ErrorBlinkStyle.NeverBlink) 277if (_provider.BlinkStyle != ErrorBlinkStyle.NeverBlink)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (10)
31private ErrorBlinkStyle _blinkStyle; 43private const ErrorBlinkStyle DefaultBlinkStyle = ErrorBlinkStyle.BlinkIfDifferentError; 114public ErrorBlinkStyle BlinkStyle 116get => _blinkRate == 0 ? ErrorBlinkStyle.NeverBlink : _blinkStyle; 124value = ErrorBlinkStyle.NeverBlink; 132if (value == ErrorBlinkStyle.AlwaysBlink) 136_blinkStyle = ErrorBlinkStyle.AlwaysBlink; 142else if (_blinkStyle == ErrorBlinkStyle.AlwaysBlink) 533BlinkStyle = ErrorBlinkStyle.NeverBlink;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (4)
221if (blinkPhase == 0 && _provider.BlinkStyle != ErrorBlinkStyle.AlwaysBlink) 330case ErrorBlinkStyle.NeverBlink: 333case ErrorBlinkStyle.BlinkIfDifferentError: 336case ErrorBlinkStyle.AlwaysBlink:
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
273_errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
42_errorProvider.BlinkStyle = ErrorBlinkStyle.NeverBlink;
System.Windows.Forms.Tests (25)
System\Windows\Forms\ErrorProviderTests.cs (25)
18Assert.Equal(ErrorBlinkStyle.BlinkIfDifferentError, provider.BlinkStyle); 41Assert.Equal(ErrorBlinkStyle.BlinkIfDifferentError, provider.BlinkStyle); 68Assert.Equal(ErrorBlinkStyle.BlinkIfDifferentError, provider.BlinkStyle); 90[InlineData(0, ErrorBlinkStyle.NeverBlink)] 91[InlineData(1, ErrorBlinkStyle.BlinkIfDifferentError)] 92[InlineData(250, ErrorBlinkStyle.BlinkIfDifferentError)] 93public void ErrorProvider_BlinkRate_Set_GetReturnsExpected(int value, ErrorBlinkStyle expectedBlinkStyle) 108provider.BlinkStyle = ErrorBlinkStyle.BlinkIfDifferentError; 121[EnumData<ErrorBlinkStyle>] 122public void ErrorProvider_BlinkStyle_Set_GetReturnsExpected(ErrorBlinkStyle value) 138[EnumData<ErrorBlinkStyle>] 139public void ErrorProvider_BlinkStyle_SetAlreadyBlink_GetReturnsExpected(ErrorBlinkStyle value) 143BlinkStyle = ErrorBlinkStyle.AlwaysBlink 157[EnumData<ErrorBlinkStyle>] 158public void ErrorProvider_BlinkStyle_SetWithZeroBlinkRate_GetReturnsExpected(ErrorBlinkStyle value) 165Assert.Equal(ErrorBlinkStyle.NeverBlink, provider.BlinkStyle); 170Assert.Equal(ErrorBlinkStyle.NeverBlink, provider.BlinkStyle); 175[InvalidEnumData<ErrorBlinkStyle>] 176public void ErrorProvider_BlinkStyle_SetInvalidValue_ThrowsInvalidEnumArgumentException(ErrorBlinkStyle value) 1029foreach (ErrorBlinkStyle blinkStyle in Enum.GetValues(typeof(ErrorBlinkStyle))) 1039public void ErrorProvider_SetError_Invoke_GetErrorReturnsExpected(ErrorBlinkStyle blinkStyle, string value, string expected) 1124foreach (ErrorBlinkStyle blinkStyle in Enum.GetValues(typeof(ErrorBlinkStyle))) 1137public void ErrorProvider_Items_CallEvents_Success(ErrorBlinkStyle blinkStyle, SubControl control, string error, string expected)