/// <summary> /// Initializes a new instance of the <see cref="BrailleKeyboardCommandEventArgs"/> class. /// </summary> /// <param name="command">The command.</param> /// <param name="c">The corresponding Braille letter to the command.</param> public BrailleKeyboardCommandEventArgs(BrailleCommand command, String c) : base(c) { Command = command; }
private void fireBrailleKeybordCommandEvent(BrailleCommand command, String c) { Logger.Instance.Log(LogPriority.MIDDLE, this, "[BRAILLE KEYBOARD] BrailleKeyboardCommand: " + command.ToString() + " + '" + c + "'"); #if DEBUG System.Diagnostics.Debug.WriteLine("::: BrailleKeyboardCommand: " + command.ToString() + " + '" + c + "'"); #endif try { if (BrailleKeyboardCommand != null && command != BrailleCommand.None) { BrailleKeyboardCommand.DynamicInvoke(this, new BrailleKeyboardCommandEventArgs(command, c)); } } catch { } }