private void AppExit_CommandExecuted() { try { if (Demo.Closing_CanExecute() == false) { return; } ////_ShutDownInProgressCancel = false; OnRequestClose(); } catch { } }