Ejemplo n.º 1
0
        private void RWD_Btn_Click(object sender, EventArgs e)
        {
            try
            {
                if (DeccaPlayer.playState == WMPLib.WMPPlayState.wmppsPlaying)
                {
                    if (Playlistlb.SelectedIndex == 0)
                    {
                        Playlistlb.SelectedIndex = 0;
                        Playlistlb.Update();
                    }

                    else
                    {
                        DeccaPlayer.Ctlcontrols.previous();
                        Playlistlb.SelectedIndex -= 1;
                        Playlistlb.Update();
                    }
                }
            }
            catch
            {
                return;
            }            
        }
Ejemplo n.º 2
0
 private void FFW_Btn_Click(object sender, EventArgs e)
 {
     try
     {
         if (DeccaPlayer.playState == WMPLib.WMPPlayState.wmppsPlaying)
         {
             if (Playlistlb.SelectedIndex < (Playlistlb.Items.Count - 1))
             {
                 DeccaPlayer.Ctlcontrols.next();
                 Playlistlb.SelectedIndex += 1;
                 Playlistlb.Update();
             }
         }
         else
         {
             Playlistlb.SelectedIndex = 0;
             Playlistlb.Update();
         }
     }
     catch
     {
         return;
     }                       
 }