mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-19 01:14:31 +08:00
(FileExistsDialog): new modal window.
added FileErrorDialog logic to GarConvert.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user