15 lines
361 B
C#
15 lines
361 B
C#
using System;
|
|
using System.Windows;
|
|
using System.Windows.Input;
|
|
|
|
namespace HandyControl.Interactivity
|
|
{
|
|
public class ShutdownAppCommand : ICommand
|
|
{
|
|
public bool CanExecute(object parameter) => true;
|
|
|
|
public void Execute(object parameter) => Application.Current.Shutdown();
|
|
|
|
public event EventHandler CanExecuteChanged;
|
|
}
|
|
} |