Exemplo n.º 1
0
        /// <summary>
        /// Button Clicked event handler.
        /// </summary>
        /// <param name="sender">event sender</param>
        /// <param name="e">event parameters</param>
        private void OnClicked(object sender, ClickedEventArgs e)
        {
            Button button = sender as Button;

            switch (button.Text)
            {
            case "play":
                player.Play();
                break;

            case "pause":
                player.Pause();
                break;

            case "stop":
                player.Stop();
                break;

            case "forward":
                player.Forward(1000);     // +1 sec
                break;

            case "backward":
                player.Backward(1000);     // -1 sec
                break;
            }
        }