private void Media_VolUp_OnClick(object sender, RoutedEventArgs e) { if (Model.IsServer) { MediaControl.VolumeUp(); } else { NetworkCommunicator.SendAsync(new HarmonyPacket() { Type = HarmonyPacket.PacketType.KeyBoardPacket, Pack = new HarmonyPacket.KeyboardPacket() { Key = Keys.VolumeUp, wParam = 256 } }); NetworkCommunicator.SendAsync(new HarmonyPacket() { Type = HarmonyPacket.PacketType.KeyBoardPacket, Pack = new HarmonyPacket.KeyboardPacket() { Key = Keys.VolumeUp, wParam = 257 } }); } }