/
hlebusheck
/
notes
Обзор
Документация
Войти
/
hlebusheck
/
notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Notes.Wpf/Controls/Commands/ActionCommand.cs
27 строк
513 B
Hlebusheck
Add export and import
14 ноя 2022, 23:35
14 ноя 2022, 23:35
fd08b87
Код
Авторство
О чём код?
using System; using System.Windows.Input; namespace Notes.Controls.Commands { public class ActionCommand : ICommand { private readonly Action _action; public ActionCommand(Action action) { _action = action; } public void Execute(object parameter) { _action(); } public bool CanExecute(object parameter) { return true; } public event EventHandler CanExecuteChanged; } }