예제 #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
파일: HexBox.cs 프로젝트: rxantos/tesv-snip
        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
파일: HexBox.cs 프로젝트: JamesH001/SX1231
 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();
     }
 }