C# Class RPS.Config

Show file Open project: marijnkampf/Random-Photo-Screensaver Class Usage Examples

Public Properties

Property Type Description
browser System.Windows.Forms.WebBrowser
effects jsonFolder
maxMonitorDimension long

Public Methods

Method Description
Config ( Screensaver screensaver ) : System
ConfigDocumentCompleted ( object sender, System e ) : void
Config_FormClosing ( object sender, FormClosingEventArgs e ) : void
DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
GetElementsByTagName ( string name ) : HtmlElementCollection
InvokeScriptOnMonitor ( int monitor, string script, string parameters ) : string
Message ( string Text ) : void
changeOrder ( ) : Config.Order
clearFilter ( ) : void
connectToDB ( ) : SQLiteConnection
getDomValue ( string id ) : string
getEffectsJSON ( ) : string
getFolder ( string folder ) : List
getFolderJSON ( string folder ) : string
getInitialFoldersJSON ( bool dumdum ) : string
getOrder ( ) : Config.Order
getPersistant ( string key ) : object
getPersistantBool ( string key ) : bool
getPersistantString ( string key ) : string
getRandomEffect ( ) : string
getUpdateVersion ( ) : string
hasPersistantKey ( string key ) : bool
installUpdate ( ) : void
isUpdateNewer ( ) : bool?
jsApplyFilter ( string filter ) : void
jsClearFilter ( string jsDummy ) : void
jsFileBrowserDialog ( string filename, string filter ) : string
jsFolderBrowserDialog ( string path ) : string
jsGetFilterColumns ( ) : string
jsGetFilters ( ) : string
jsGetSelectedEffects ( ) : string
jsGetUFRawLocation ( ) : string
jsInputChanged ( string id, string value ) : void
jsOpenExternalLink ( string href ) : void
jsOpenProgramAppDataFolder ( ) : void
jsRawConverterAvailable ( string path ) : string
jsSetGPURendering ( ) : bool
jsSetSelectedEffects ( string jsonEffects ) : void
jsonAllPersistant ( ) : string
loadPersistantConfig ( ) : void
loadPersistantConfig ( int nrMonitors ) : void
persistantLoaded ( ) : bool
resetWallpaper ( ) : bool
saveDebug ( ) : void
savePersistantConfig ( ) : bool
setBrowserBodyClasses ( WebBrowser browser, Screensaver action ) : void
setBrowserBodyClasses ( WebBrowser browser, Screensaver action, string classes ) : void
setDomValue ( string id, string value ) : void
setInnerHTML ( string id, string html ) : void
setPersistant ( string key, object value ) : void
setPersistant ( string key, object value, bool updateDom ) : void
showUpdateInfo ( string info ) : void
syncMonitors ( ) : bool
timerCheckUpdates_Tick ( object sender, EventArgs e ) : void
updateDownloadUrl ( ) : string
updateFileMD5 ( ) : string
updateFilename ( ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Config_VisibleChanged ( object sender, EventArgs e ) : void
DownloadProgress ( object sender, DownloadProgressChangedEventArgs e ) : void
InitializeComponent ( ) : void

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

checkTrackChangesChanged ( ) : bool
getDomCheckboxValue ( string id ) : bool
getDomRadioValue ( string id ) : string
getElementById ( string id ) : HtmlElement
getUpdateUri ( ) : Uri
setCurrentTrackChanges ( ) : void
webUpdateCheck_DocumentCompleted ( object sender, WebBrowserDocumentCompletedEventArgs e ) : void

Method Details

Config() public method

public Config ( Screensaver screensaver ) : System
screensaver Screensaver
return System

ConfigDocumentCompleted() public method

public ConfigDocumentCompleted ( object sender, System e ) : void
sender object
e System
return void

Config_FormClosing() public method

public Config_FormClosing ( object sender, FormClosingEventArgs e ) : void
sender object
e FormClosingEventArgs
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DownloadFileCompleted() public method

public DownloadFileCompleted ( object sender, AsyncCompletedEventArgs e ) : void
sender object
e AsyncCompletedEventArgs
return void

GetElementsByTagName() public method

public GetElementsByTagName ( string name ) : HtmlElementCollection
name string
return HtmlElementCollection

InvokeScriptOnMonitor() public method

public InvokeScriptOnMonitor ( int monitor, string script, string parameters ) : string
monitor int
script string
parameters string
return string

Message() public method

public Message ( string Text ) : void
Text string
return void

changeOrder() public method

public changeOrder ( ) : Config.Order
return Config.Order

clearFilter() public method

public clearFilter ( ) : void
return void

connectToDB() public method

public connectToDB ( ) : SQLiteConnection
return SQLiteConnection

getDomValue() public method

public getDomValue ( string id ) : string
id string
return string

getEffectsJSON() public method

public getEffectsJSON ( ) : string
return string

getFolder() public method

public getFolder ( string folder ) : List
folder string
return List

getFolderJSON() public method

public getFolderJSON ( string folder ) : string
folder string
return string

getInitialFoldersJSON() public method

public getInitialFoldersJSON ( bool dumdum ) : string
dumdum bool
return string

getOrder() public method

public getOrder ( ) : Config.Order
return Config.Order

getPersistant() public method

public getPersistant ( string key ) : object
key string
return object

getPersistantBool() public method

public getPersistantBool ( string key ) : bool
key string
return bool

getPersistantString() public method

public getPersistantString ( string key ) : string
key string
return string

getRandomEffect() public method

public getRandomEffect ( ) : string
return string

getUpdateVersion() public method

public getUpdateVersion ( ) : string
return string

hasPersistantKey() public method

public hasPersistantKey ( string key ) : bool
key string
return bool

installUpdate() public method

public installUpdate ( ) : void
return void

isUpdateNewer() public method

public isUpdateNewer ( ) : bool?
return bool?

jsApplyFilter() public method

public jsApplyFilter ( string filter ) : void
filter string
return void

jsClearFilter() public method

public jsClearFilter ( string jsDummy ) : void
jsDummy string
return void

jsFileBrowserDialog() public method

public jsFileBrowserDialog ( string filename, string filter ) : string
filename string
filter string
return string

jsFolderBrowserDialog() public method

public jsFolderBrowserDialog ( string path ) : string
path string
return string

jsGetFilterColumns() public method

public jsGetFilterColumns ( ) : string
return string

jsGetFilters() public method

public jsGetFilters ( ) : string
return string

jsGetSelectedEffects() public method

public jsGetSelectedEffects ( ) : string
return string

jsGetUFRawLocation() public method

public jsGetUFRawLocation ( ) : string
return string

jsInputChanged() public method

public jsInputChanged ( string id, string value ) : void
id string
value string
return void

jsOpenExternalLink() public method

public jsOpenExternalLink ( string href ) : void
href string
return void

jsOpenProgramAppDataFolder() public method

public jsOpenProgramAppDataFolder ( ) : void
return void

jsRawConverterAvailable() public method

public jsRawConverterAvailable ( string path ) : string
path string
return string

jsSetGPURendering() public method

public jsSetGPURendering ( ) : bool
return bool

jsSetSelectedEffects() public method

public jsSetSelectedEffects ( string jsonEffects ) : void
jsonEffects string
return void

jsonAllPersistant() public method

public jsonAllPersistant ( ) : string
return string

loadPersistantConfig() public method

public loadPersistantConfig ( ) : void
return void

loadPersistantConfig() public method

public loadPersistantConfig ( int nrMonitors ) : void
nrMonitors int
return void

persistantLoaded() public method

public persistantLoaded ( ) : bool
return bool

resetWallpaper() public method

public resetWallpaper ( ) : bool
return bool

saveDebug() public method

public saveDebug ( ) : void
return void

savePersistantConfig() public method

public savePersistantConfig ( ) : bool
return bool

setBrowserBodyClasses() public method

public setBrowserBodyClasses ( WebBrowser browser, Screensaver action ) : void
browser WebBrowser
action Screensaver
return void

setBrowserBodyClasses() public static method

public static setBrowserBodyClasses ( WebBrowser browser, Screensaver action, string classes ) : void
browser WebBrowser
action Screensaver
classes string
return void

setDomValue() public method

public setDomValue ( string id, string value ) : void
id string
value string
return void

setInnerHTML() public method

public setInnerHTML ( string id, string html ) : void
id string
html string
return void

setPersistant() public method

public setPersistant ( string key, object value ) : void
key string
value object
return void

setPersistant() public method

public setPersistant ( string key, object value, bool updateDom ) : void
key string
value object
updateDom bool
return void

showUpdateInfo() public method

public showUpdateInfo ( string info ) : void
info string
return void

syncMonitors() public method

public syncMonitors ( ) : bool
return bool

timerCheckUpdates_Tick() public method

public timerCheckUpdates_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

updateDownloadUrl() public method

public updateDownloadUrl ( ) : string
return string

updateFileMD5() public method

public updateFileMD5 ( ) : string
return string

updateFilename() public method

public updateFilename ( ) : string
return string

Property Details

browser public property

public System.Windows.Forms.WebBrowser browser
return System.Windows.Forms.WebBrowser

effects public property

public jsonFolder,RPS effects
return jsonFolder

maxMonitorDimension public property

public long maxMonitorDimension
return long