protected void enqueueInteractionQueuItem(DateTime timestamp, InteractionQueueObjectType type, EventArgs e, object sender)
 {
     if (e != null)
     {
         BrailleIO.BrailleIODevice device = null;
         if (sender != null && sender is IBrailleIOAdapter) device = ((IBrailleIOAdapter)sender).Device;
         inputQueue.Enqueue(new InteractionQueueItem(timestamp, type, device, e, sender));
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InteractionQueueItem"/> struct.
 /// </summary>
 /// <param name="timestamp">The timestamp when the input happens.</param>
 /// <param name="type">The type of the input.</param>
 /// <param name="device">The device from which ii was sent.</param>
 /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 /// <param name="sender">The sending Adapter.</param>
 public InteractionQueueItem(DateTime timestamp, InteractionQueueObjectType type, BrailleIODevice device, EventArgs args, Object sender)
 {
     Timestamp = timestamp; Type = type; Device = device; Args = args; Sender = sender;
 }
 protected void enqueueInteractionQueuItem(InteractionQueueObjectType type, EventArgs e, object sender) { enqueueInteractionQueuItem(DateTime.Now, type, e, sender); }