mirror of https://github.com/BrianLima/UWPHook
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace UWPHook
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for SettingsWindow.xaml
|
|
/// </summary>
|
|
public partial class SettingsWindow : Window
|
|
{
|
|
public SettingsWindow()
|
|
{
|
|
InitializeComponent();
|
|
|
|
Properties.Settings.Default.ChangeLanguage = true;
|
|
|
|
foreach (var culture in CultureInfo.GetCultures(CultureTypes.AllCultures))
|
|
{
|
|
cultures_comboBox.Items.Add(culture.TextInfo.CultureName);
|
|
}
|
|
}
|
|
|
|
private void ToggleButton_Checked(object sender, RoutedEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void saveButton_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
Properties.Settings.Default.ChangeLanguage = (bool)language_toggle.IsChecked;
|
|
Properties.Settings.Default.TargetLanguage = cultures_comboBox.SelectedItem.ToString();
|
|
Properties.Settings.Default.Save();
|
|
}
|
|
}
|
|
}
|