1 instantiation of KeyboardToolTipStateMachine
System.Windows.Forms (1)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (1)
33s_instance ??= new KeyboardToolTipStateMachine();
108 references to KeyboardToolTipStateMachine
System.Windows.Forms (68)
System\Windows\Forms\Control.cs (4)
7629KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(toInvoke); 7724KeyboardToolTipStateMachine.HidePersistentTooltip(); 7787KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(toInvoke); 11512KeyboardToolTipStateMachine.Instance.NotifyAboutMouseEnter(this);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
10823KeyboardToolTipStateMachine.Instance.Hook(dataGridViewCellNew, KeyboardToolTip); 11026KeyboardToolTipStateMachine.Instance.Hook(dataGridViewCell, KeyboardToolTip); 14572KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(CurrentCell); 15208KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(CurrentCell); 15855KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(CurrentCell); 17118KeyboardToolTipStateMachine.Instance.Unhook(dataGridViewRow.Cells[columnIndex], KeyboardToolTip); 17246KeyboardToolTipStateMachine.Instance.Unhook(cell, KeyboardToolTip); 22051KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(dataGridViewCell); 22055KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(dataGridViewCell); 27643KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(dataGridViewCell); 27725KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(dataGridViewCell); 28230KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(CurrentCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (3)
934KeyboardToolTipStateMachine.Instance.Hook(dataGridViewCell, DataGridView.KeyboardToolTip); 2785KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 2809KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this);
System\Windows\Forms\Controls\ListView\ListView.cs (5)
3773KeyboardToolTipStateMachine.Instance.Hook(listViewItem, KeyboardToolTip); 3776KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(listViewItem); 3784KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(listViewItem); 3790KeyboardToolTipStateMachine.Instance.Unhook(listViewItem, KeyboardToolTip); 6411KeyboardToolTipStateMachine.Instance.Unhook(listViewItem, KeyboardToolTip);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
1009KeyboardToolTipStateMachine.Instance.Hook(this, _listView!.KeyboardToolTip); 1171KeyboardToolTipStateMachine.Instance.Unhook(this, _listView.KeyboardToolTip);
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
1205KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(selectedTab); 1209KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(selectedTab); 1471KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
1627KeyboardToolTipStateMachine.Instance.Hook(item, internalToolTip); 1631KeyboardToolTipStateMachine.Instance.Unhook(item, internalToolTip); 4688KeyboardToolTipStateMachine.Instance.Hook(item, ToolTip); 4694KeyboardToolTipStateMachine.Instance.Unhook(item, ToolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
877KeyboardToolTipStateMachine.Instance.Hook(ControlInternal, toolTip); 884KeyboardToolTipStateMachine.Instance.Unhook(ControlInternal, toolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1248KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(itemOnPreviousMenuToSelect);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (8)
89KeyboardToolTipStateMachine.Instance.Unhook(_dropDown, _hookedKeyboardTooltip); 103KeyboardToolTipStateMachine.Instance.Hook(_dropDown, _hookedKeyboardTooltip); 359KeyboardToolTipStateMachine.Instance.Unhook(_dropDown, _hookedKeyboardTooltip); 579KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 597KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 628KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 746KeyboardToolTipStateMachine.Instance.Hook(_dropDown, toolTip); 756KeyboardToolTipStateMachine.Instance.Unhook(_dropDown, toolTip);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (5)
822KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 2485KeyboardToolTipStateMachine.Instance.NotifyAboutMouseEnter(this); 2526KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 3154KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(this); 3539KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (3)
165IKeyboardToolTip? lastFocusedTool = KeyboardToolTipStateMachine.Instance.LastFocusedTool; 169KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(lastFocusedTool); 215KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(tool);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
756KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this); 1052KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(this);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1978KeyboardToolTipStateMachine.Instance.Unhook(this, tv.KeyboardToolTip);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
315KeyboardToolTipStateMachine.Instance.Hook(treeNode, tv.KeyboardToolTip); 451KeyboardToolTipStateMachine.Instance.Hook(treeNode, tv.KeyboardToolTip);
System\Windows\Forms\Controls\TreeView\TreeView.cs (3)
1731KeyboardToolTipStateMachine.Instance.NotifyAboutGotFocus(treeNode); 1739KeyboardToolTipStateMachine.Instance.NotifyAboutLostFocus(treeNode); 3138KeyboardToolTipStateMachine.Instance.Unhook(node, KeyboardToolTip);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1018KeyboardToolTipStateMachine.Reset();
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (2)
29public static KeyboardToolTipStateMachine Instance 40private static KeyboardToolTipStateMachine? s_instance;
System\Windows\Forms\ToolTip\ToolTip.cs (5)
640KeyboardToolTipStateMachine.Instance.Hook(control, this); 648KeyboardToolTipStateMachine.Instance.Unhook(control, this); 1158KeyboardToolTipStateMachine.Instance.Unhook(control, toolTip: this); 1167KeyboardToolTipStateMachine.Instance.ResetStateMachine(this); 1778KeyboardToolTipStateMachine.Instance.NotifyAboutFormDeactivation(this);
System.Windows.Forms.Tests (40)
KeyboardTooltipStateMachineTests.cs (10)
22KeyboardToolTipStateMachine.Instance.Hook(keyboardToolTip, toolTip); 30KeyboardToolTipStateMachine.Instance.Hook(keyboardToolTip, toolTip); 39KeyboardToolTipStateMachine.Instance.Unhook(keyboardToolTip, toolTip); 47KeyboardToolTipStateMachine.Instance.Unhook(keyboardToolTip, toolTip); 68KeyboardToolTipStateMachine instance = KeyboardToolTipStateMachine.Instance; 70instance.TestAccessor().Dynamic._currentState = KeyboardToolTipStateMachine.SmState.Shown; 100KeyboardToolTipStateMachine instance = KeyboardToolTipStateMachine.Instance; 102instance.TestAccessor().Dynamic._currentState = KeyboardToolTipStateMachine.SmState.Shown;
System\Windows\Forms\ContainerControlTests.cs (6)
1324KeyboardToolTipStateMachine instance = KeyboardToolTipStateMachine.Instance; 1349KeyboardToolTipStateMachine instance = KeyboardToolTipStateMachine.Instance; 1373object instance = typeof(KeyboardToolTipStateMachine).GetField("s_instance", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null); 1389object instance = typeof(KeyboardToolTipStateMachine).GetField("s_instance", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null);
System\Windows\Forms\ListViewGroupTests.cs (2)
1434var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 1449var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor();
System\Windows\Forms\ListViewTests.cs (9)
4872Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4885var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 4904Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4915var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 4932var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 4947Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4956Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4964var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 4978var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor();
System\Windows\Forms\TestAccessors.KeyboardToolTipStateMachineTestAccessor.cs (3)
10internal class KeyboardToolTipStateMachineTestAccessor : TestAccessor<KeyboardToolTipStateMachine> 12public KeyboardToolTipStateMachineTestAccessor(KeyboardToolTipStateMachine instance) 18internal static KeyboardToolTipStateMachineTestAccessor TestAccessor(this KeyboardToolTipStateMachine instance)
System\Windows\Forms\TreeNodeTests.cs (2)
4633Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(treeNode)); 4634Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(treeSubNode));
System\Windows\Forms\TreeViewTests.cs (8)
6660Assert.True(KeyboardToolTipStateMachine.Instance.TestAccessor().IsToolTracked(treeNode)); 6674var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 6693var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 6714var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 6733var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 6753var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); 6780Assert.True(KeyboardToolTipStateMachine.Instance.TestAccessor().IsToolTracked(treeNode)); 6793var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor();