[#15] MailWindow: Add Rundschreiben-Funktion
This commit is contained in:
22
Elwig/Helpers/ActionCommand.cs
Normal file
22
Elwig/Helpers/ActionCommand.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace Elwig.Helpers {
|
||||
public class ActionCommand : ICommand {
|
||||
|
||||
public event EventHandler CanExecuteChanged;
|
||||
private readonly Action Action;
|
||||
|
||||
public ActionCommand(Action action) {
|
||||
Action = action;
|
||||
}
|
||||
|
||||
public void Execute(object parameter) {
|
||||
Action();
|
||||
}
|
||||
|
||||
public bool CanExecute(object parameter) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user