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