Example #1
0
        void ShortcutCompleted(KeyShortcut shortcut)
        {
            if (HasCompletedValue)
                throw new InvalidOperationException();

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

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