Skip to main content

Motion Standalone Postprocessor C# library 2024 R2

Class CommandBase

Last update: 03.07.2024

Namespace: VM
Assembly: VM.dll

public abstract class CommandBase : ObservableObject, IObservableObject, IDisposableObject

Inheritance

objectObservableObjectCommandBase

Implements

IObservableObject, IDisposableObject

Inherited Members

ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Constructors

CommandBase(Func<object, bool>)

public CommandBase(Func<object, bool> canExecute)

Parameters

canExecute Func<object, bool>

Properties

Description

public string Description { get; set; }

Property Value

string

IsExecuting

protected bool IsExecuting { get; set; }

Property Value

bool

Methods

CanExecute(object)

public bool CanExecute(object parameter)

Parameters

parameter object

Returns

bool

OnCanExecuteChanged()

protected void OnCanExecuteChanged()

OnShouldExecute()

protected void OnShouldExecute()

CanExecuteChanged

public virtual event EventHandler CanExecuteChanged

Event Type

EventHandler

ShouldExecute

public event EventHandler ShouldExecute

Event Type

EventHandler