public Settings() { InitializeComponent(); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateInactive); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateActive); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateSWLAN); viewMode.Items.Add(Strings.Settings_ModeClassic); viewMode.Items.Add(Strings.Settings_ModeModern); viewMode.SelectedItem = Cache.InClassicStyle() ? Strings.Settings_ModeClassic : Strings.Settings_ModeModern; var version = PhoneHelper .GetAppAttribute("Version"); lblVersion.Text = string.Format(lblVersion.Text, version); Array.ForEach(cultures, item => { var lang = new LanguageProxy(item); listpickerLanguage.Items.Add(lang); if (lang.Name == Thread.CurrentThread.CurrentCulture.Name) listpickerLanguage.SelectedItem = lang; }); }
public Settings() { InitializeComponent(); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateInactive); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateActive); lstAutoSyncSettings.Items.Add(Strings.Settings_AutoUpdateSWLAN); viewMode.Items.Add(Strings.Settings_ModeClassic); viewMode.Items.Add(Strings.Settings_ModeModern); viewMode.SelectedItem = Cache.InClassicStyle() ? Strings.Settings_ModeClassic : Strings.Settings_ModeModern; var version = PhoneHelper .GetAppAttribute("Version"); lblVersion.Text = string.Format(lblVersion.Text, version); Array.ForEach(cultures, item => { var lang = new LanguageProxy(item); listpickerLanguage.Items.Add(lang); if (lang.Name == Thread.CurrentThread.CurrentCulture.Name) { listpickerLanguage.SelectedItem = lang; } }); }