private void OpenLogoffBox(object sender, RoutedEventArgs e)
{
bool? LogoffChoice = CairoMessage.ShowOkCancel("You will lose all unsaved documents and be logged off.", "Are you sure you want to log off now?", "Resources/logoffIcon.png", "Log Off", "Cancel");
if (LogoffChoice.HasValue && LogoffChoice.Value)
{
NativeMethods.Logoff();
}
else
{
}
}