示例#1
0
        private void ActivateStringKeyInterpreter()
        {
            if (stringKeyInterpreter == null)
                stringKeyInterpreter = new StringKeyInterpreter(this);

            if (stringKeyInterpreter == currentKeyInterpreter)
                return;

            if (currentKeyInterpreter != null)
                currentKeyInterpreter.Deactivate();

            currentKeyInterpreter = stringKeyInterpreter;
            currentKeyInterpreter.Activate();
        }
示例#2
0
        private void ActivateStringKeyInterpreter()
        {
            if (_ski == null)
                _ski = new StringKeyInterpreter(this);

            if (_ski == _keyInterpreter)
                return;

            if (_keyInterpreter != null)
                _keyInterpreter.Deactivate();

            _keyInterpreter = _ski;
            _keyInterpreter.Activate();
        }
示例#3
0
 private void ActivateStringKeyInterpreter()
 {
     if (this._ski == null)
     {
         this._ski = new StringKeyInterpreter(this);
     }
     if (this._ski != this._keyInterpreter)
     {
         if (this._keyInterpreter != null)
         {
             this._keyInterpreter.Deactivate();
         }
         this._keyInterpreter = this._ski;
         this._keyInterpreter.Activate();
     }
 }