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