Implement Write() in Config and rename DatabasePath to DatabaseFile

This commit is contained in:
lorenz.stechauner committed 2023-04-15 22:58:09 +02:00
1 parent ecf5ed8d55
commit 27fbae088a
3 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ namespace Elwig {
protected override void OnStartup(StartupEventArgs evt) {
using (var ctx = new AppDbContext()) {
if (!ctx.Database.CanConnect()) {
MessageBox.Show($"Invalid Database:\n\n{Config.DatabasePath}", "Invalid Database", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show($"Invalid Database:\n\n{Config.DatabaseFile}", "Invalid Database", MessageBoxButton.OK, MessageBoxImage.Error);
Shutdown();
}
}