コード例 #1
0
ファイル: ShortcutAccumulator.cs プロジェクト: bihai/carnac
        void ShortcutCompleted(KeyShortcut shortcut)
        {
            if (HasCompletedValue)
                throw new InvalidOperationException();

            messages = new[] { new Message(Keys, shortcut) };
            HasCompletedValue = true;
        }
コード例 #2
0
        void ShortcutCompleted(KeyShortcut shortcut)
        {
            if (HasCompletedValue)
            {
                throw new InvalidOperationException();
            }

            messages          = new[] { new Message(Keys, shortcut) };
            HasCompletedValue = true;
        }