예제 #1
0
        public void Execute(object parameter)
        {
            if (System.Windows.MessageBox.Show(
                    "Are you sure?", "Logout", System.Windows.MessageBoxButton.OKCancel) ==
                System.Windows.MessageBoxResult.OK)
            {
                bool   success = CoreExtensions.DeleteFileFromStorage("user.xml");
                string message = success ?
                                 "Logout successful."
                    : "Logout failed.";

                System.Windows.Notification.Show(message, "Logout");
            }

            OnCanExecuteChanged();
        }
예제 #2
0
 public void DeleteDraft()
 {
     CoreExtensions.DeleteFileFromStorage("reply.xml");
 }