5 writes to _currentTool
System.Windows.Forms (5)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (5)
172_currentTool = null; 187_currentTool = tool; 224_currentTool = tool; 301_currentTool = null; 315_currentTool = null;
21 references to _currentTool
System.Windows.Forms (21)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (21)
113if (_currentTool is null) 125if (_currentTool == sender) 161if (_currentTool is not null) 163toolTip.HideToolTip(_currentTool); 202if (_currentTool is null) 207if (!_currentTool.IsHoveredWithMouse()) 209toolTip.ShowKeyboardToolTip(toolTipText, _currentTool, autoPopDelay); 216GetOneRunTickHandler((Timer sender) => Transit(SmEvent.DismissTooltips, _currentTool))); 227GetOneRunTickHandler((Timer sender) => Transit(SmEvent.InitialDelayTimerExpired, _currentTool))); 263if ((_currentTool is null || _currentTool.CanShowToolTipsNow()) && toolTip is not null) 290if (_currentState != SmState.Shown || _currentTool is null) 295ToolTip? currentToolTip = _toolToTip[_currentTool]; 300currentToolTip.HideToolTip(_currentTool); 308if (_currentState == SmState.Shown && _currentTool is not null) 310ToolTip? currentToolTip = _toolToTip[_currentTool]; 311currentToolTip?.HideToolTip(_currentTool); 327if (toolTipToReset is null || (_currentTool is not null && _toolToTip[_currentTool] == toolTipToReset)) 347if (_currentTool is not null && _toolToTip[_currentTool] == sender)