Exemplo n.º 1
0
 public void OpenFileOrFolder(string path)
 {
     Parallel.ForEach(fileManageCharacteristic.SubscribedDevices, device => fileManageCharacteristic.Broadcast(Encoding.UTF8.GetBytes(path), device));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 发送点击事件
 /// </summary>
 /// <param name="virtualKeyCode"></param>
 internal void Click(VirtualKeyCode virtualKeyCode)
 {
     Parallel.ForEach(keyboardCharacteristic.SubscribedDevices, device => keyboardCharacteristic.Broadcast(BitConverter.GetBytes((int)virtualKeyCode), device));
 }