diff --git a/GUI/GARbro.GUI.csproj b/GUI/GARbro.GUI.csproj index 8473c37a..996c47b3 100644 --- a/GUI/GARbro.GUI.csproj +++ b/GUI/GARbro.GUI.csproj @@ -176,6 +176,9 @@ Component + + SettingsWindow.xaml + True @@ -238,6 +241,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/GUI/MainWindow.xaml b/GUI/MainWindow.xaml index 2ae8c980..b0aa0954 100644 --- a/GUI/MainWindow.xaml +++ b/GUI/MainWindow.xaml @@ -135,6 +135,9 @@ + + + @@ -412,6 +416,7 @@ + diff --git a/GUI/MainWindow.xaml.cs b/GUI/MainWindow.xaml.cs index d2d17c06..77d87ec3 100644 --- a/GUI/MainWindow.xaml.cs +++ b/GUI/MainWindow.xaml.cs @@ -1289,6 +1289,13 @@ namespace GARbro.GUI about.ShowDialog(); } + private void PreferencesExec (object sender, ExecutedRoutedEventArgs e) + { + var settings = new SettingsWindow(); + settings.Owner = this; + settings.ShowDialog(); + } + private void CanExecuteAlways (object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; @@ -1517,5 +1524,6 @@ namespace GARbro.GUI public static readonly RoutedCommand NextItem = new RoutedCommand(); public static readonly RoutedCommand CopyNames = new RoutedCommand(); public static readonly RoutedCommand StopPlayback = new RoutedCommand(); + public static readonly RoutedCommand Preferences = new RoutedCommand(); } } diff --git a/GUI/SettingsWindow.xaml b/GUI/SettingsWindow.xaml new file mode 100644 index 00000000..f380bf16 --- /dev/null +++ b/GUI/SettingsWindow.xaml @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +