Exemplo n.º 1
0
 private void DropDownMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (PlaylistView.SelectedIndices.Count == 0)
     {
         DropDownMenu.Hide();
     }
     else
     {
         int           Index = PlaylistView.SelectedIndices[0];
         ToolStripItem Item  = DropDownMenu.Items[4];
         Item.Enabled = Tracks[Index].Writeable;
     }
 }
 private void DropDownMenu_Opening(object sender, CancelEventArgs e)
 {
     if (PlaylistView.SelectedIndices.Count == 0)
     {
         DropDownMenu.Hide();
     }
     else
     {
         var Index = PlaylistView.SelectedIndices[0];
         foreach (ToolStripItem Item in DropDownMenu.Items)
         {
             if (Item.Text == "Properties")
             {
                 Item.Enabled = Tracks[Index].Writeable;
             }
         }
     }
 }
Exemplo n.º 3
0
 private void PlayClick(object sender, EventArgs e)
 {
     PlaySelectedTrack();
     DropDownMenu.Hide();
 }