C# Класс hoTools.Settings.AddinSettings

Settings for hoTools. It merges default settings (ActiveX.dll.config) with current settings in install directory to the current settings.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AllServices List
ButtonsConfigSearch Control.EaAddinShortcuts.EaAddinButtons[]
ButtonsServiceConfig List
GlobalKeysConfig List
GlobalKeysConfigSearch List

Private Properties

Свойство Тип Описание
GetAllServices void
GetBoolConfigValue bool
GetButtonsSearch Control.EaAddinShortcuts.EaAddinButtons[]
GetButtonsService List
GetConnector void
GetDefaultSettings void
GetKeysSearch List
GetKeysService List
GetStringConfigValue string
MergeDefaultSettings void
MessageConfigValueNotExists void
SetBoolConfigValue void
SetButtonsSearch void
SetButtonsServices void
SetConnector void
SetGlobalKeysSearch void
SetGlobalKeysService void
SetStringConfigValue void
UpdateKeysService void
UpdateToolbarServiceButtons void

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

Метод Описание
AddinSettings ( ) : System

Merge default settings (install DLLs) with current settings (user.config) Read settings from %APPDATA%\ho\hoTools\user.config or %APPDATA%\ho\hoTools_ZFLT\user.config

Refresh ( ) : void
Save ( ) : void

saves the settings to the config file

UpdateKeysAndToolbarsServices ( ) : void

Update the subclasses services (Call Service or run Script) for: - Buttons - Global keys / global shortcuts / keyboard keys by - Method / Script - Tool tip - Subclasses

UpdateModel ( Model model ) : void

Update settings with model specific features like: Scripts

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

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

Fill the list AllServices with all possible Services and Scripts.

GetBoolConfigValue ( string name ) : bool

Get bool config value. If the value don't exists return a false.

GetButtonsSearch ( ) : Control.EaAddinShortcuts.EaAddinButtons[]

Get 5 Searches

GetButtonsService ( ) : List

Get 5 services of type Call or Script from configuration

GetConnector ( DiagramConnector l ) : void
GetDefaultSettings ( ) : void

gets the default settings config.

GetKeysSearch ( ) : List
GetKeysService ( ) : List

GetStringConfigValue ( string name ) : string

Get string value from configuration

MergeDefaultSettings ( ) : void

merge the default settings with the current config.

MessageConfigValueNotExists ( string name, string value ) : void

Output error Message box for not existent configuration parameter or invalid value

SetBoolConfigValue ( string name, bool value ) : void

Set bool config value. If error output a message

SetButtonsSearch ( EaAddinButtons l ) : void
SetButtonsServices ( List l ) : void
SetConnector ( DiagramConnector l ) : void
SetGlobalKeysSearch ( List l ) : void
SetGlobalKeysService ( List l ) : void
SetStringConfigValue ( string name, string value ) : void

Set string value in configuration. If error output error message

UpdateKeysService ( ) : void

Update then global keys service for Call and Script. Helptext, subservices

UpdateToolbarServiceButtons ( ) : void

Update Toolbar Buttons by available Services and Scripts.

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

AddinSettings() публичный Метод

Merge default settings (install DLLs) with current settings (user.config) Read settings from %APPDATA%\ho\hoTools\user.config or %APPDATA%\ho\hoTools_ZFLT\user.config
public AddinSettings ( ) : System
Результат System

Refresh() публичный Метод

public Refresh ( ) : void
Результат void

Save() публичный Метод

saves the settings to the config file
public Save ( ) : void
Результат void

UpdateKeysAndToolbarsServices() публичный Метод

Update the subclasses services (Call Service or run Script) for: - Buttons - Global keys / global shortcuts / keyboard keys by - Method / Script - Tool tip - Subclasses
public UpdateKeysAndToolbarsServices ( ) : void
Результат void

UpdateModel() публичный Метод

Update settings with model specific features like: Scripts
public UpdateModel ( Model model ) : void
model Model
Результат void

Описание свойств

AllServices публичное свойство

public List AllServices
Результат List

ButtonsConfigSearch публичное свойство

public EaAddinButtons[],Control.EaAddinShortcuts ButtonsConfigSearch
Результат Control.EaAddinShortcuts.EaAddinButtons[]

ButtonsServiceConfig публичное свойство

public List ButtonsServiceConfig
Результат List

GlobalKeysConfig публичное свойство

public List GlobalKeysConfig
Результат List

GlobalKeysConfigSearch публичное свойство

public List GlobalKeysConfigSearch
Результат List