添加项目文件。

This commit is contained in:
ShrlAlgo
2025-09-04 09:53:20 +08:00
parent 54b372165a
commit 5f24922f54
42 changed files with 5570 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
using System;
using System.Windows.Input;
namespace AddInManager
{
internal class RelayCommand : ICommand
{
private Action<object> execute;
private Func<object, bool> canExecute;
public event EventHandler CanExecuteChanged;
public RelayCommand(Action<object> execute, Func<object, bool> canExecute = null)
{
if (execute == null)
throw new System.ArgumentNullException();
this.execute = execute;
this.canExecute = canExecute;
}
public bool CanExecute(object parameter)
{
return canExecute == null || canExecute(parameter);
}
public void Execute(object parameter)
{
execute(parameter);
}
}
}