C# Класс ACAT.Extensions.Default.FunctionalAgents.SwitchWindowsAgent.SwitchWindowsScanner

Наследование: System.Windows.Forms.Form, IScannerPanel, IExtension
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.

ClearFilter ( ) : void

Clears the search filter box

GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker

Gets the extension invoker object

Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool

Initialize this class

IsFilterEmpty ( ) : bool

Returns if the filter is empty

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void

Not used

OnPause ( ) : void

Not used

OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool

Not used

OnResume ( ) : void

Not used

OnRunCommand ( string command, bool &handled ) : void

Not used

OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Widget was actuated

SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void

Not used

SwitchWindowsScanner ( ) : System

Initializes a new instance of the class.

createStatusBar ( ) : void

Creates a status bar for the scanner

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnFormClosing ( FormClosingEventArgs e ) : void

Release resources

Приватные методы

Метод Описание
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Instance_EvtScannerClosed ( object sender, ACAT.Lib.Core.PanelManagement.ScannerCloseEventArg arg ) : void

Event handler for when a scanner closes. Reposition this scanner to its default position. This event is raised by the Panel Manager

Instance_EvtScannerShow ( object sender, ACAT.Lib.Core.PanelManagement.ScannerShowEventArg arg ) : void

Invoked by the Panel Manager when a scanner is shown Dock this form to the scanner

OnLocationChanged ( object sender, EventArgs eventArgs ) : void

Don't let the window move. Re-dock it to the companian scanner

SearchFilter_TextChanged ( object sender, EventArgs e ) : void

Search filter text changed. Reload the list and display only those windows that match

SortOrderIcon_Click ( object sender, EventArgs e ) : void

Change the sort order

SwitchWindowsScanner_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources and stop threads/timers

SwitchWindowsScanner_KeyDown ( object sender, KeyEventArgs e ) : void

Key down event handler

SwitchWindowsScanner_Load ( object sender, EventArgs e ) : void

Initialze the form

SwitchWindowsScanner_Shown ( object sender, EventArgs e ) : void

Set focus to this form

WndProc ( Message &m ) : void
_keyboardActuator_EvtKeyPress ( object sender, KeyPressEventArgs e ) : void

Key press event handler

actuateWidget ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Find the widget that was actuated and act on it

dockToScanner ( Form scanner ) : void

Docks this form to the companian scanner

enableWatchdogs ( ) : void

Enable watchdogs to keep this window in focus

filterWindows ( IEnumerable windowList, String filter ) : List

Filters the list by the specified filter and returns only those entries that match

getMeasuredString ( Graphics graphics, Font font, int width, String inputString ) : String

Returns string that graphically fits into the specified width. If it doesn't, curtails the string and adds ellipses

getWidgets ( ) : void

Stores widget objects from the form

getWindowList ( SortOrder order ) : List

Gets a list of active windows sorted on the indcated sort order

gotoNextPage ( ) : void

Show the next pageful of entries in the window list

gotoPreviousPage ( ) : void

Show the previous pageful of entries in the window list

handleWidgetSelection ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void

Perform the operation - page through the list, activate a window etc

handleWindowSelect ( ACAT.Lib.Core.Utility.EnumWindows wInfo ) : void

User selected a window to switch to. Trigger an event to indicate this.

highlightOff ( ) : void

Turn highlight off for all widgets

loadWindowList ( ) : void

Get a list of active windows and display it in the list

refreshWindowList ( ) : void

Refresh the list of windows in the UI

removeWatchdogs ( ) : void

Remove all the watchdogs

setFormStyles ( CreateParams createParams ) : CreateParams

Set the sytle of this form

sortWindowList ( List windowsList, SortOrder order ) : List

Sort the list by the word order

switchSortOrder ( ) : void

Switch the sort order and re-display the list of windows

updateButtonBar ( ) : void

Update status bar with page number and sort order info

updateStatusBar ( ) : void

Updates the status bar with sort order info

Описание методов

CheckWidgetEnabled() публичный метод

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : bool
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs info about the scanner button
Результат bool

ClearFilter() публичный метод

Clears the search filter box
public ClearFilter ( ) : void
Результат void

Dispose() защищенный метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetInvoker() публичный метод

Gets the extension invoker object
public GetInvoker ( ) : ACAT.Lib.Core.Extensions.ExtensionInvoker
Результат ACAT.Lib.Core.Extensions.ExtensionInvoker

Initialize() публичный метод

Initialize this class
public Initialize ( ACAT.Lib.Core.PanelManagement.StartupArg startupArg ) : bool
startupArg ACAT.Lib.Core.PanelManagement.StartupArg startup argument
Результат bool

IsFilterEmpty() публичный метод

Returns if the filter is empty
public IsFilterEmpty ( ) : bool
Результат bool

OnFocusChanged() публичный метод

Not used
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo
Результат void

OnFormClosing() защищенный метод

Release resources
protected OnFormClosing ( FormClosingEventArgs e ) : void
e System.Windows.Forms.FormClosingEventArgs args
Результат void

OnPause() публичный метод

Not used
public OnPause ( ) : void
Результат void

OnQueryPanelChange() публичный метод

Not used
public OnQueryPanelChange ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs eventArg ) : bool
eventArg ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs
Результат bool

OnResume() публичный метод

Not used
public OnResume ( ) : void
Результат void

OnRunCommand() публичный метод

Not used
public OnRunCommand ( string command, bool &handled ) : void
command string command to run
handled bool was this handled?
Результат void

OnWidgetActuated() публичный метод

Widget was actuated
public OnWidgetActuated ( ACAT.Lib.Core.WidgetManagement.Widget widget, bool &handled ) : void
widget ACAT.Lib.Core.WidgetManagement.Widget widget that was actuated
handled bool was it handled?
Результат void

SetTargetControl() публичный метод

Not used
public SetTargetControl ( Form parent, ACAT.Lib.Core.WidgetManagement.Widget widget ) : void
parent System.Windows.Forms.Form
widget ACAT.Lib.Core.WidgetManagement.Widget
Результат void

SwitchWindowsScanner() публичный метод

Initializes a new instance of the class.
public SwitchWindowsScanner ( ) : System
Результат System

createStatusBar() публичный метод

Creates a status bar for the scanner
public createStatusBar ( ) : void
Результат void