C# Class Bloom.Edit.Configurator

Manages configuration UI and settings for templates that contain setup scripts
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Property Type Description
ConfigureBookInternal void
Contains bool
GetInnerjson string
IsArray bool
IsComplexObject bool
MergeJsonData string
NavigateAndWait void
browser_DocumentNavigated void

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

CollectJsonData() public method

Saves off the library part to disk, stores the rest
public CollectJsonData ( string newDataString ) : void
newDataString string
return void

Configurator() public method

public Configurator ( string folderInWhichToReadAndSaveLibrarySettings, NavigationIsolator isolator ) : System
folderInWhichToReadAndSaveLibrarySettings string
isolator NavigationIsolator
return System

ConfigureBook() public method

Before calling this, ConfigurationData has to be loaded. E.g., by running ShowConfigurationDialog()
public ConfigureBook ( string bookPath ) : void
bookPath string
return void

GetAllData() public method

public GetAllData ( ) : string
return string

GetLibraryData() public method

public GetLibraryData ( ) : string
return string

IsConfigurable() public static method

public static IsConfigurable ( string folderPath ) : bool
folderPath string
return bool

RunJavaScript() public method

public RunJavaScript ( Gecko.GeckoWebBrowser b, string script ) : void
b Gecko.GeckoWebBrowser
script string
return void

ShowConfigurationDialog() public method

public ShowConfigurationDialog ( string folderPath ) : DialogResult
folderPath string
return DialogResult