mirror of
https://github.com/4sval/FModel.git
synced 2026-04-02 07:05:13 -05:00
18 lines
386 B
C#
18 lines
386 B
C#
using System;
|
|
using System.Windows.Input;
|
|
|
|
namespace FModel.Framework;
|
|
|
|
public abstract class Command : ICommand
|
|
{
|
|
public abstract void Execute(object parameter);
|
|
|
|
public abstract bool CanExecute(object parameter);
|
|
|
|
public void RaiseCanExecuteChanged()
|
|
{
|
|
CanExecuteChanged?.Invoke(this, EventArgs.Empty);
|
|
}
|
|
|
|
public event EventHandler CanExecuteChanged;
|
|
} |