C# Класс Bloom.Edit.Configurator

Manages configuration UI and settings for templates that contain setup scripts
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ConfigureBookInternal void
Contains bool
GetInnerjson string
IsArray bool
IsComplexObject bool
MergeJsonData string
NavigateAndWait void
browser_DocumentNavigated void

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

Метод Описание
CollectJsonData ( string newDataString ) : void

Saves off the library part to disk, stores the rest

Configurator ( string folderInWhichToReadAndSaveLibrarySettings, NavigationIsolator isolator ) : System
ConfigureBook ( string bookPath ) : void

Before calling this, ConfigurationData has to be loaded. E.g., by running ShowConfigurationDialog()

GetAllData ( ) : string
GetLibraryData ( ) : string
IsConfigurable ( string folderPath ) : bool
RunJavaScript ( Gecko.GeckoWebBrowser b, string script ) : void
ShowConfigurationDialog ( string folderPath ) : DialogResult

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

Метод Описание
ConfigureBookInternal ( string bookPath ) : void
Contains ( Newtonsoft.Json.Linq.JObject o, string key ) : bool
GetInnerjson ( string json ) : string
IsArray ( string value ) : bool
IsComplexObject ( string value ) : bool
MergeJsonData ( string a, string b ) : string

merge the existing data with this new stuff

NavigateAndWait ( Gecko.GeckoWebBrowser browser, string url ) : void
browser_DocumentNavigated ( object sender, EventArgs e ) : void

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

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

Saves off the library part to disk, stores the rest
public CollectJsonData ( string newDataString ) : void
newDataString string
Результат void

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

public Configurator ( string folderInWhichToReadAndSaveLibrarySettings, NavigationIsolator isolator ) : System
folderInWhichToReadAndSaveLibrarySettings string
isolator NavigationIsolator
Результат System

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

Before calling this, ConfigurationData has to be loaded. E.g., by running ShowConfigurationDialog()
public ConfigureBook ( string bookPath ) : void
bookPath string
Результат void

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

public GetAllData ( ) : string
Результат string

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

public GetLibraryData ( ) : string
Результат string

IsConfigurable() публичный статический Метод

public static IsConfigurable ( string folderPath ) : bool
folderPath string
Результат bool

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

public RunJavaScript ( Gecko.GeckoWebBrowser b, string script ) : void
b Gecko.GeckoWebBrowser
script string
Результат void

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

public ShowConfigurationDialog ( string folderPath ) : DialogResult
folderPath string
Результат DialogResult