Пример #1
0
        public int TranslateAccelerator(MSG[] pMsg)
        {
#if DEBUG
            if (pMsg == null || pMsg.Length != 1)
            {
                throw new ArgumentException(nameof(pMsg));
            }
#endif
            var msg = pMsg[0];
            return(WaitForAsync(() => _propertyPageUI.TranslateAcceleratorAsync(msg)));
        }
Пример #2
0
        public int TranslateAccelerator(MSG[] pMsg)
        {
#if DEBUG
            if (pMsg == null)
            {
                throw new ArgumentNullException(nameof(pMsg));
            }

            if (pMsg.Length != 1)
            {
                throw new ArgumentOutOfRangeException(nameof(pMsg));
            }
#endif
            return(WaitForAsync(() => _propertyPageUI.TranslateAcceleratorAsync(pMsg[0])));
        }