Halyri - Mobiili  0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
Halyri.SettingsAndOthers Class Reference

Here user can view and change application settings and watch first aid tutorials. More...

Inheritance diagram for Halyri.SettingsAndOthers:

Public Types

enum  FontSizes {
  FontSizes.Biggest, FontSizes.Bigger, FontSizes.Default, FontSizes.Smaller,
  FontSizes.Smallest
}
 

Public Member Functions

void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
 SettingsAndOthers ()
 After initialize loads settings from Settings. More...
 

Protected Member Functions

override void OnNavigatedTo (NavigationEventArgs e)
 Sets pivot to first aid when this page is loaded if navigationcontext contains "tofirstaid" string. More...
 

Private Member Functions

void LoadSettings ()
 Loads every settings from Settings.cs. More...
 
void SaveButton_Click (object sender, RoutedEventArgs e)
 Saves every setting that have been edited. If language have been changed sets currentculture to the language and loads page again without cache. More...
 
void LanguageListPicker_SelectionChanged (object sender, SelectionChangedEventArgs e)
 Adds languagelistpickers value to settings, but does not save it. More...
 
void GPSToggle_Checked (object sender, RoutedEventArgs e)
 sets settings isGPSEnabled true, but does not save it. More...
 
void GPSToggle_Unchecked (object sender, RoutedEventArgs e)
 Sets settings isGPSEnabled false, but does not save it. More...
 
void PersonalInfoEditButton_Click (object sender, RoutedEventArgs e)
 Navigates to view where user can edit his personal informations. More...
 

Private Attributes

bool _contentLoaded
 
Settings settings = new Settings()
 
bool languageChanged = false
 
List< CultureInfo > CultureInfos = new List<CultureInfo> {CultureInfo.InvariantCulture,new CultureInfo("en-US"),new CultureInfo("fi-FI") }
 

Detailed Description

Here user can view and change application settings and watch first aid tutorials.

Member Enumeration Documentation

Enumerator
Biggest 
Bigger 
Default 
Smaller 
Smallest 

Constructor & Destructor Documentation

Halyri.SettingsAndOthers.SettingsAndOthers ( )

After initialize loads settings from Settings.

Member Function Documentation

void Halyri.SettingsAndOthers.GPSToggle_Checked ( object  sender,
RoutedEventArgs  e 
)
private

sets settings isGPSEnabled true, but does not save it.

void Halyri.SettingsAndOthers.GPSToggle_Unchecked ( object  sender,
RoutedEventArgs  e 
)
private

Sets settings isGPSEnabled false, but does not save it.

void Halyri.SettingsAndOthers.InitializeComponent ( )

InitializeComponent

void Halyri.SettingsAndOthers.InitializeComponent ( )

InitializeComponent

void Halyri.SettingsAndOthers.InitializeComponent ( )

InitializeComponent

void Halyri.SettingsAndOthers.InitializeComponent ( )

InitializeComponent

void Halyri.SettingsAndOthers.LanguageListPicker_SelectionChanged ( object  sender,
SelectionChangedEventArgs  e 
)
private

Adds languagelistpickers value to settings, but does not save it.

void Halyri.SettingsAndOthers.LoadSettings ( )
private

Loads every settings from Settings.cs.

override void Halyri.SettingsAndOthers.OnNavigatedTo ( NavigationEventArgs  e)
protected

Sets pivot to first aid when this page is loaded if navigationcontext contains "tofirstaid" string.

void Halyri.SettingsAndOthers.PersonalInfoEditButton_Click ( object  sender,
RoutedEventArgs  e 
)
private

Navigates to view where user can edit his personal informations.

void Halyri.SettingsAndOthers.SaveButton_Click ( object  sender,
RoutedEventArgs  e 
)
private

Saves every setting that have been edited. If language have been changed sets currentculture to the language and loads page again without cache.

Member Data Documentation

bool Halyri.SettingsAndOthers._contentLoaded
private
List<CultureInfo> Halyri.SettingsAndOthers.CultureInfos = new List<CultureInfo> {CultureInfo.InvariantCulture,new CultureInfo("en-US"),new CultureInfo("fi-FI") }
private
bool Halyri.SettingsAndOthers.languageChanged = false
private
Settings Halyri.SettingsAndOthers.settings = new Settings()
private

The documentation for this class was generated from the following files: