private void OpenShutDownBox(object sender, RoutedEventArgs e)
{
bool? ShutdownChoice = CairoMessage.ShowOkCancel("You will lose all unsaved documents and your computer will turn off.", "Are you sure you want to shut down now?", "Resources/shutdownIcon.png", "Shut Down", "Cancel");
if (ShutdownChoice.HasValue && ShutdownChoice.Value)
{
NativeMethods.Shutdown();
}
else
{
}
}