Ejemplo n.º 1
0
        void ShortcutCompleted(KeyShortcut shortcut)
        {
            if (HasCompletedValue)
                throw new InvalidOperationException();

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

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