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

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

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