private void galnetAlwaysOnChecked(object sender, RoutedEventArgs e) { GalnetConfiguration configuration = GalnetConfiguration.FromFile(); configuration.galnetAlwaysOn = galnetAlwaysOn.IsChecked.Value; configuration.ToFile(); monitor.Reload(); }
private void onLanguageChanged(object sender, SelectionChangedEventArgs e) { string language = (string)((ComboBox)e.Source).SelectedValue; GalnetConfiguration configuration = GalnetConfiguration.FromFile(); if (language != null && language != configuration.language) { // If the language changes we clear out the old articles GalnetSqLiteRepository.Instance.DeleteNews(); configuration.lastuuid = null; configuration.language = language; configuration.ToFile(); monitor?.Reload(); } }