35 references to UICues
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (7)
12056
UICues
UIcues =
UICues
.None;
12064
UIcues |=
UICues
.ChangeKeyboard;
12073
UIcues |=
UICues
.ShowKeyboard;
12085
UIcues |=
UICues
.ChangeFocus;
12094
UIcues |=
UICues
.ShowFocus;
12099
if ((UIcues &
UICues
.Changed) != 0)
System\Windows\Forms\UICuesEventArgs.cs (8)
11
private readonly
UICues
_uicues;
13
public UICuesEventArgs(
UICues
uicues)
21
public bool ShowFocus => (_uicues &
UICues
.ShowFocus) != 0;
26
public bool ShowKeyboard => (_uicues &
UICues
.ShowKeyboard) != 0;
31
public bool ChangeFocus => (_uicues &
UICues
.ChangeFocus) != 0;
36
public bool ChangeKeyboard => (_uicues &
UICues
.ChangeKeyboard) != 0;
38
public
UICues
Changed => (_uicues &
UICues
.Changed);
System.Windows.Forms.Tests (20)
System\Windows\Forms\ControlTests.Handlers.cs (2)
780
yield return new object[] { new UICuesEventArgs(
UICues
.None) };
781
yield return new object[] { new UICuesEventArgs(
UICues
.Changed) };
System\Windows\Forms\ToolStripDropDownTests.cs (2)
3682
yield return new object[] { new UICuesEventArgs(
UICues
.None) };
3683
yield return new object[] { new UICuesEventArgs(
UICues
.Changed) };
System\Windows\Forms\UICuesEventArgsTests.cs (16)
10
[InlineData((
UICues
)(-1))]
11
[InlineData(
UICues
.None)]
12
[InlineData(
UICues
.ShowFocus)]
13
[InlineData(
UICues
.ShowKeyboard)]
14
[InlineData(
UICues
.Shown)]
15
[InlineData(
UICues
.ChangeFocus)]
16
[InlineData(
UICues
.ChangeKeyboard)]
17
[InlineData(
UICues
.Changed)]
18
[InlineData(
UICues
.Changed |
UICues
.Shown)]
19
public void Ctor_UICues(
UICues
uicues)
22
Assert.Equal((uicues &
UICues
.ShowFocus) != 0, e.ShowFocus);
23
Assert.Equal((uicues &
UICues
.ShowKeyboard) != 0, e.ShowKeyboard);
24
Assert.Equal((uicues &
UICues
.ChangeFocus) != 0, e.ChangeFocus);
25
Assert.Equal((uicues &
UICues
.ChangeKeyboard) != 0, e.ChangeKeyboard);
26
Assert.Equal(uicues &
UICues
.Changed, e.Changed);