diff --git a/GUI/FileErrorDialog.xaml.cs b/GUI/FileErrorDialog.xaml.cs index 7fcb5725..420e9129 100644 --- a/GUI/FileErrorDialog.xaml.cs +++ b/GUI/FileErrorDialog.xaml.cs @@ -16,6 +16,16 @@ namespace GARbro.GUI this.DataContext = new ViewModel { Title = title, Text = error_text }; } + new public FileErrorDialogResult ShowDialog () + { + bool dialog_result = base.ShowDialog() ?? false; + return new FileErrorDialogResult + { + Continue = dialog_result, + IgnoreErrors = IgnoreErrors.IsChecked ?? false + }; + } + private void ContinueButton_Click (object sender, RoutedEventArgs e) { this.DialogResult = true; @@ -73,4 +83,10 @@ namespace GARbro.GUI public event EventHandler CanExecuteChanged; } } + + public struct FileErrorDialogResult + { + public bool Continue; + public bool IgnoreErrors; + } } diff --git a/GUI/FileExistsDialog.xaml b/GUI/FileExistsDialog.xaml new file mode 100644 index 00000000..bb1c2689 --- /dev/null +++ b/GUI/FileExistsDialog.xaml @@ -0,0 +1,21 @@ + + + + + + + +