(FileExistsDialog): new modal window.

added FileErrorDialog logic to GarConvert.
This commit is contained in:
morkt
2017-02-03 18:04:35 +04:00
parent f8c63f134b
commit 661e986e85
12 changed files with 332 additions and 60 deletions

View File

@@ -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;
}
}