ShareReadability
Public Member Functions | Private Member Functions | List of all members
ShareReadability.SettingsWindow Class Reference
Inheritance diagram for ShareReadability.SettingsWindow:

Public Member Functions

 SettingsWindow ()
 Constructor of the settings window. More...
 
void InitializeSlider ()
 Initializes the sliders. More...
 

Private Member Functions

void ButtonOk_Click (object sender, RoutedEventArgs e)
 Closes the settings window and sets the values. More...
 
void ButtonCancel_Click (object sender, RoutedEventArgs e)
 Closes the settings window without passing the set values. More...
 
void SetSliderActive ()
 Sets all sliders active. More...
 
void SetSliderInActive ()
 Sets all sliders inactive. More...
 
void Slider_OnValueChanged (object sender, RoutedPropertyChangedEventArgs< double > e)
 Normalizes all slider values with their total sum, so they sum up to 1.0. More...
 
void ButtonDictionary_OnClick (object sender, RoutedEventArgs e)
 Loads a new dictionary, if the actions is not canceled. More...
 

Detailed Description

Definition at line 15 of file SettingsWindow.xaml.cs.

Constructor & Destructor Documentation

◆ SettingsWindow()

ShareReadability.SettingsWindow.SettingsWindow ( )

Constructor of the settings window.

Definition at line 26 of file SettingsWindow.xaml.cs.

Member Function Documentation

◆ ButtonCancel_Click()

void ShareReadability.SettingsWindow.ButtonCancel_Click ( object  sender,
RoutedEventArgs  e 
)
private

Closes the settings window without passing the set values.

Parameters
senderThe sender.
eThe event.

Definition at line 73 of file SettingsWindow.xaml.cs.

◆ ButtonDictionary_OnClick()

void ShareReadability.SettingsWindow.ButtonDictionary_OnClick ( object  sender,
RoutedEventArgs  e 
)
private

Loads a new dictionary, if the actions is not canceled.

Parameters
senderThe sender.
eThe event.

Definition at line 130 of file SettingsWindow.xaml.cs.

◆ ButtonOk_Click()

void ShareReadability.SettingsWindow.ButtonOk_Click ( object  sender,
RoutedEventArgs  e 
)
private

Closes the settings window and sets the values.

Parameters
senderThe sender.
eThe event.

Definition at line 53 of file SettingsWindow.xaml.cs.

◆ InitializeSlider()

void ShareReadability.SettingsWindow.InitializeSlider ( )

Initializes the sliders.

Definition at line 35 of file SettingsWindow.xaml.cs.

◆ SetSliderActive()

void ShareReadability.SettingsWindow.SetSliderActive ( )
private

Sets all sliders active.

Definition at line 81 of file SettingsWindow.xaml.cs.

◆ SetSliderInActive()

void ShareReadability.SettingsWindow.SetSliderInActive ( )
private

Sets all sliders inactive.

Definition at line 92 of file SettingsWindow.xaml.cs.

◆ Slider_OnValueChanged()

void ShareReadability.SettingsWindow.Slider_OnValueChanged ( object  sender,
RoutedPropertyChangedEventArgs< double >  e 
)
private

Normalizes all slider values with their total sum, so they sum up to 1.0.

Parameters
senderThe sender.
eThe event.

Definition at line 105 of file SettingsWindow.xaml.cs.