BasicCommandHandlers.ModeCommandHandlerPlugin.Add C# (CSharp) Метод

Add() публичный Метод

public Add ( string mode ) : void
mode string
Результат void
        public void Add( string mode )
        {
            if( KeyboardContext.CurrentKeyboard != null )
            {
                IKeyboardMode kbMode = KeyboardContext.ObtainMode( mode );
                KeyboardContext.CurrentKeyboard.CurrentMode = KeyboardContext.CurrentKeyboard.CurrentMode.Add( kbMode );
                if( ModeChangedByCommandHandler != null ) ModeChangedByCommandHandler( this, new ModeChangedEventArgs( kbMode ) );
            }
        }