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