コード例 #1
0
        private void ActivateEmptyKeyInterpreter()
        {
            if (emptyKeyInterpreter == null)
                emptyKeyInterpreter = new EmptyKeyInterpreter(this);

            if (emptyKeyInterpreter == currentKeyInterpreter)
                return;

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

            currentKeyInterpreter = emptyKeyInterpreter;
            currentKeyInterpreter.Activate();
        }
コード例 #2
0
ファイル: HexBox.cs プロジェクト: rxantos/tesv-snip
        private void ActivateEmptyKeyInterpreter()
        {
            if (_eki == null)
                _eki = new EmptyKeyInterpreter(this);

            if (_eki == _keyInterpreter)
                return;

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

            _keyInterpreter = _eki;
            _keyInterpreter.Activate();
        }
コード例 #3
0
ファイル: HexBox.cs プロジェクト: JamesH001/SX1231
 private void ActivateEmptyKeyInterpreter()
 {
     if (this._eki == null)
     {
         this._eki = new EmptyKeyInterpreter(this);
     }
     if (this._eki != this._keyInterpreter)
     {
         if (this._keyInterpreter != null)
         {
             this._keyInterpreter.Deactivate();
         }
         this._keyInterpreter = this._eki;
         this._keyInterpreter.Activate();
     }
 }