C# 클래스 Nexus.Client.Commands.CommandBindingBase

The base class for command bindings.
상속: ICommandBinding
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
Execute ( ) : void

Executes the command.

Unbind ( ) : void

Disposes of the binding.

After this method is called, the binding between the trigger and command should no longer exist. In other words, activating the trigger should no longer execute the command.

보호된 메소드들

메소드 설명
CommandBindingBase ( object p_objTrigger, ICommand p_cmdCommand ) : System

A simple constructor that initializes the object with the given values.

OnCommandPropertyChanged ( PropertyChangedEventArgs e ) : void

Alters properties on the Trigger in response to property changes on the command.

비공개 메소드들

메소드 설명
CommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the command.

메소드 상세

CommandBindingBase() 보호된 메소드

A simple constructor that initializes the object with the given values.
protected CommandBindingBase ( object p_objTrigger, ICommand p_cmdCommand ) : System
p_objTrigger object The object that can trigger the command.
p_cmdCommand ICommand The command that can be triggered.
리턴 System

Execute() 공개 추상적인 메소드

Executes the command.
public abstract Execute ( ) : void
리턴 void

OnCommandPropertyChanged() 보호된 메소드

Alters properties on the Trigger in response to property changes on the command.
protected OnCommandPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A describing the changed property.
리턴 void

Unbind() 공개 추상적인 메소드

Disposes of the binding.
After this method is called, the binding between the trigger and command should no longer exist. In other words, activating the trigger should no longer execute the command.
public abstract Unbind ( ) : void
리턴 void