Exemplo n.º 1
0
        //TODO: Add Mute Button

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