public TextTemplateCommandParameterManager ( ITextTemplateService textTemplate, ISendStringService sendString ) : System | ||
textTemplate | ITextTemplateService | |
sendString | ISendStringService | |
Результат | System |
public TextTemplateCommandParameterManager(ITextTemplateService textTemplate, ISendStringService sendString)
{
_textTemplate = textTemplate;
_placeholder = "";
_insertPlacholder = new VMCommand( () => {
if( string.IsNullOrEmpty( _placeholder ) ) return;
if( !IsFocused ) return;
sendString.SendString( _textTemplate.OpentTag + _placeholder + _textTemplate.CloseTag );
NotifyPropertyChanged( "Template" );
NotifyPropertyChanged( "IsValid" );
} );
}