コード例 #1
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();
        }
コード例 #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
        void ActivateKeyInterpreter()
        {
            if (_ki == null)
                _ki = new KeyInterpreter(this);

            if (_ki == _keyInterpreter)
                return;

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

            _keyInterpreter = _ki;
            _keyInterpreter.Activate();
        }
コード例 #4
0
ファイル: HexBox.cs プロジェクト: IntegralLee/fomm
    private void ActivateKeyInterpreter()
    {
      if (_ki == null)
      {
        _ki = new KeyInterpreter(this);
      }

      if (_ki == _keyInterpreter)
      {
        return;
      }

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

      _keyInterpreter = _ki;
      _keyInterpreter.Activate();
    }
コード例 #5
0
        private void ActivateStringKeyInterpreter()
        {
            if (stringKeyInterpreter == null)
                stringKeyInterpreter = new StringKeyInterpreter(this);

            if (stringKeyInterpreter == currentKeyInterpreter)
                return;

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

            currentKeyInterpreter = stringKeyInterpreter;
            currentKeyInterpreter.Activate();
        }
コード例 #6
0
        private void ActivateKeyInterpreter()
        {
            if (keyInterpreter == null)
                keyInterpreter = new KeyInterpreter(this);

            if (keyInterpreter == currentKeyInterpreter)
                return;

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

            currentKeyInterpreter = keyInterpreter;
            currentKeyInterpreter.Activate();
        }
コード例 #7
0
        private void ActivateEmptyKeyInterpreter()
        {
            if (emptyKeyInterpreter == null)
                emptyKeyInterpreter = new EmptyKeyInterpreter(this);

            if (emptyKeyInterpreter == currentKeyInterpreter)
                return;

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

            currentKeyInterpreter = emptyKeyInterpreter;
            currentKeyInterpreter.Activate();
        }