mirror of
https://github.com/4sval/FModel.git
synced 2026-06-21 07:20:05 -05:00
18 lines
389 B
C#
18 lines
389 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;
|
|
} |