C# Класс ACAT.Extensions.Default.FunctionalAgents.LectureManager.LectureManagerAgent

Наследование: ACAT.Lib.Core.AgentManagement.FunctionalAgentBase
Показать файл Открыть проект

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

Метод Описание
Activate ( ) : bool

Invoked when the Functional agent is activated. This is the entry point. Displays the lecture manager form and sets the file name to read from.

CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void

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

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

Invoked when there is a request to display a contextual menu

OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void

Invoked when the focus changes either in the active window or when the active window itself changes.

OnRequestClose ( ) : bool

A request came in to close the agent. We MUST quit if this call is ever made

OnRunCommand ( String command, object commandArg, bool &handled ) : void

Invoked when there is a request to run a command. This could as a result of the user activating a button on the scanner and there is a command associated with the button

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

Метод Описание
Confirm ( String prompt ) : bool

Gets confirmation from the user

closeCurrentPanel ( ) : void

Closes the current scanner

form_FormClosing ( object sender, FormClosingEventArgs e ) : void

Release resources

getLectureManagerPanel ( ACAT.Lib.Core.PanelManagement.PanelRequestEventArgs arg ) : bool

Depending on the context, returns the appropriate scanner to activate

isContextMenuIcon ( ACAT.Lib.Core.WidgetManagement.Widget widget ) : bool

Checks if the specified widget is a context menu icon widget

isContextMenuText ( ACAT.Lib.Core.WidgetManagement.Widget widget ) : bool

Checks if the specified widget is a context menu text widget

isMainFormActive ( ) : bool

Returns if the lecture manager form is active

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

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

Invoked when the Functional agent is activated. This is the entry point. Displays the lecture manager form and sets the file name to read from.
public Activate ( ) : bool
Результат bool

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 ) : void
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs info about the scanner button
Результат void

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

Invoked when there is a request to display a contextual menu
public OnContextMenuRequest ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo foreground window info
Результат void

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

Invoked when the focus changes either in the active window or when the active window itself changes.
public OnFocusChanged ( ACAT.Lib.Core.Utility.WindowActivityMonitorInfo monitorInfo, bool &handled ) : void
monitorInfo ACAT.Lib.Core.Utility.WindowActivityMonitorInfo Info about focused element
handled bool was this handled
Результат void

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

A request came in to close the agent. We MUST quit if this call is ever made
public OnRequestClose ( ) : bool
Результат bool

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

Invoked when there is a request to run a command. This could as a result of the user activating a button on the scanner and there is a command associated with the button
public OnRunCommand ( String command, object commandArg, bool &handled ) : void
command String command to run
commandArg object any optional arguments
handled bool was this handled?
Результат void