|
@@ -1,9 +1,6 @@
|
|
using PixiEditor.Models.Enums;
|
|
using PixiEditor.Models.Enums;
|
|
using PixiEditor.Views;
|
|
using PixiEditor.Views;
|
|
-using System;
|
|
|
|
-using System.IO;
|
|
|
|
-using System.Windows;
|
|
|
|
-
|
|
|
|
|
|
+
|
|
namespace PixiEditor.Models.Dialogs
|
|
namespace PixiEditor.Models.Dialogs
|
|
{
|
|
{
|
|
public static class ConfirmationDialog
|
|
public static class ConfirmationDialog
|
|
@@ -15,12 +12,12 @@ namespace PixiEditor.Models.Dialogs
|
|
Body = message,
|
|
Body = message,
|
|
Topmost = true
|
|
Topmost = true
|
|
};
|
|
};
|
|
- if (popup.ShowDialog().GetValueOrDefault())
|
|
|
|
|
|
+ if ((bool)popup.ShowDialog())
|
|
{
|
|
{
|
|
return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
|
|
return popup.Result ? ConfirmationType.Yes : ConfirmationType.No;
|
|
}
|
|
}
|
|
|
|
|
|
return ConfirmationType.Canceled;
|
|
return ConfirmationType.Canceled;
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|