Beispiel #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;
            }            
        }
Beispiel #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;
     }                       
 }