예제 #1
0
        public void EndRetainedInput(IInputRetainer _retainer)
        {
            if (_retainer != retainer)
            {
                throw new InvalidOperationException("This is not retaining input!");
            }

            retainer = null;
        }
예제 #2
0
        public void RetainInput(IInputRetainer _retainer)
        {
            if (retainer != null)
            {
                throw new InvalidOperationException("Something is already retaining input!");
            }

            retainer = _retainer;
        }