C# Class ProtocolManagerModel.VMProtocolEditorsProvider

Inheritance: INotifyPropertyChanged, IProtocolEditorRoot
ファイルを表示 Open project: Invenietis/ck-certified Class Usage Examples

Protected Properties

Property Type Description
_vmProtocolEditor VMProtocolEditor

Public Methods

Method Description
AddEditor ( string protocol, VMProtocolEditorWrapper wrapper, Type handlingService ) : void
CreateKeyCommand ( string keyCommand, IKeyMode editedKeyMode ) : void
FlushCurrentProtocolEditor ( ) : void
GetHandlingService ( string protocol ) : Type

Used by the keyboard editor to get the service linked to a protocol. Enables adding the service into the keyboard's requirement layer.

GetProtocolEditorWrapper ( string protocol ) : VMProtocolEditorWrapper

Gets the VMProtocolEditorWrapper for the specified protocol. If the protocol is not handled, returns an empty VMProtocolEditorWrapper, with a IsValid property returning false

InitializeProtocolEditor ( IKeyMode editedKeyMode ) : void
RemoveEditor ( string protocol ) : void
VMProtocolEditorsProvider ( ) : System

Protected Methods

Method Description
OnChildPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Private Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Method Details

AddEditor() public method

public AddEditor ( string protocol, VMProtocolEditorWrapper wrapper, Type handlingService ) : void
protocol string
wrapper VMProtocolEditorWrapper
handlingService System.Type
return void

CreateKeyCommand() public method

public CreateKeyCommand ( string keyCommand, IKeyMode editedKeyMode ) : void
keyCommand string
editedKeyMode IKeyMode
return void

FlushCurrentProtocolEditor() public method

public FlushCurrentProtocolEditor ( ) : void
return void

GetHandlingService() public method

Used by the keyboard editor to get the service linked to a protocol. Enables adding the service into the keyboard's requirement layer.
public GetHandlingService ( string protocol ) : Type
protocol string A protocol
return System.Type

GetProtocolEditorWrapper() public method

Gets the VMProtocolEditorWrapper for the specified protocol. If the protocol is not handled, returns an empty VMProtocolEditorWrapper, with a IsValid property returning false
public GetProtocolEditorWrapper ( string protocol ) : VMProtocolEditorWrapper
protocol string The protocol (ex : sendString, sendKey, keyboardswitch...)
return VMProtocolEditorWrapper

InitializeProtocolEditor() public method

public InitializeProtocolEditor ( IKeyMode editedKeyMode ) : void
editedKeyMode IKeyMode
return void

OnChildPropertyChanged() protected method

protected OnChildPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
sender object
e System.ComponentModel.PropertyChangedEventArgs
return void

RemoveEditor() public method

public RemoveEditor ( string protocol ) : void
protocol string
return void

VMProtocolEditorsProvider() public method

public VMProtocolEditorsProvider ( ) : System
return System

Property Details

_vmProtocolEditor protected_oe property

protected VMProtocolEditor,ProtocolManagerModel _vmProtocolEditor
return VMProtocolEditor