C# Class UserInterface.Settings

Afficher le fichier Open project: mhack/gamenoise Class Usage Examples

Méthodes publiques

Méthode Description
Settings ( Configuration aConfiguration, IPluginManager aPluginManager ) : System

Constructor to initialize all stuff

Update ( object subject ) : void

Updates all information

Private Methods

Méthode Description
AreAllValidNumericChars ( string str ) : bool
CatchPluginSkins ( String pluginFolder ) : void

Catches all available Plugin Skins

CatchPlugins ( ) : void

Catches all available Plugins

CatchSkins ( ) : void

Catches all available skins

FillLanguageBox ( ItemsControl cb ) : void
Hyperlink_Click ( object sender, RoutedEventArgs e ) : void
SaveGeneral ( ) : void

Save General Settings

SaveHotkeys ( ) : void

Saves all hotkeys

SaveOverlayColors ( ) : void

Saves all OverlayColors

SaveOverlayPosition ( ) : void

Saves the Overlay-Position

SaveOverlayTimerSettings ( ) : void

Saves the Overlay-Timer-Settings

SaveSettings ( ) : void

Saves all settings

TryKey ( KeyEventArgs e, String &newString ) : bool

Try to convert convert a insert key to a hotkey-type

UpdateColors ( object subject ) : void

update Color Information

UpdateHotkeys ( object subject ) : void

updates Hotkey Information

UpdatePreview ( ) : void

Updates the preview image for the skin

Window_Closing ( object sender, System.CancelEventArgs e ) : void

When closing the window all settings will be stored.

Window_Initialized ( object sender, EventArgs e ) : void

Updates the data manually on initialization

WriteThanks ( ) : void

Writes the text for the Thanks-Box to the textbox

buttonApplyClick ( object sender, RoutedEventArgs e ) : void

Saves the settings

buttonCancelClick ( object sender, RoutedEventArgs e ) : void

Closes the form

buttonColorBack_Click ( object sender, RoutedEventArgs e ) : void

Dialog Color Background

buttonColorFont_Click ( object sender, RoutedEventArgs e ) : void

Dialog Font Color

buttonColorHKBack_Click ( object sender, RoutedEventArgs e ) : void

Dialog Hotkey Background

buttonColorHKTop_Click ( object sender, RoutedEventArgs e ) : void

Dialog Color Hotkey Top

buttonColorLine_Click ( object sender, RoutedEventArgs e ) : void

Dialog Line Color

buttonColorProgress_Click ( object sender, RoutedEventArgs e ) : void

Dialog Progress-Bar Color

buttonLoadDefaultClick ( object sender, RoutedEventArgs e ) : void

Resets the settings to default

buttonOKClick ( object sender, RoutedEventArgs e ) : void

Saves the data and close the window

comboBoxPluginSkin_DropDownClosed ( object sender, EventArgs e ) : void

Plugin Preview Changed

comboBoxPlugin_DropDownClosed ( object sender, EventArgs e ) : void

Selected Plugin Changed

comboBoxSkin_DropDownClosed ( object sender, EventArgs e ) : void

Skin Preview Changed

radioButtonBottomLeft_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Bottom Left Corner

radioButtonBottomRight_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Bottom Right Corner

radioButtonBottom_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Bottom

radioButtonTopLeft_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Top Left Corner

radioButtonTopRight_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Top Right Corner

radioButtonTop_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Top

radioButtonVisAlways_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Always Visible

radioButtonVisSeconds_Checked ( object sender, RoutedEventArgs e ) : void

Overlay Timer Enabled

textBoxNext_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxOverlay_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxPlay_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxPrev_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxStop_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxVisSeconds_OnPreviewTextInput ( object sender, TextCompositionEventArgs e ) : void
textBoxVisSeconds_TextChanged ( object sender, TextChangedEventArgs e ) : void

Overlay Timer Seconds

textBoxVolDown_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBoxVolUp_KeyUp ( object sender, KeyEventArgs e ) : void

Try to convert the pressed key in a hotkey and set it to the textbox

textBox_KeyDown ( object sender, KeyEventArgs e ) : void

This function catches the pressed key and hides it on the textbox

Method Details

Settings() public méthode

Constructor to initialize all stuff
public Settings ( Configuration aConfiguration, IPluginManager aPluginManager ) : System
aConfiguration Configuration Reference to the the Configuration object
aPluginManager IPluginManager
Résultat System

Update() public méthode

Updates all information
public Update ( object subject ) : void
subject object object
Résultat void