Exemplo n.º 1
0
        /// <summary>
        /// (Tray) -> Playback -> Stop
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void StopTrayItem_Click(object sender, EventArgs e)
        {
            WMP wmpStreamEngine = new WMP();

            wmpStreamEngine.ControlAudio(AudioControlEnum.Stop, MediaPlayer);

            TrayIcon.Text = "Traydio";
        }
Exemplo n.º 2
0
        /// <summary>
        /// (Tray) -> Playback -> Play
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void PlayTrayItem_Click(object sender, EventArgs e)
        {
            WMP wmpStreamEngine = new WMP();

            wmpStreamEngine.ControlAudio(AudioControlEnum.Play, MediaPlayer);
        }