private void OpenRebootBox(object sender, RoutedEventArgs e)
{
bool? RebootChoice = CairoMessage.ShowOkCancel("You will lose all unsaved documents and your computer will restart.", "Are you sure you want to restart now?", "Resources/restartIcon.png", "Restart", "Cancel");
if (RebootChoice.HasValue && RebootChoice.Value)
{
NativeMethods.Reboot();
}
else
{
}
}