示例#1
0
 private void editplaylistbtn_Click(object sender, EventArgs e)
 {
     if (playlistview.SelectedItems.Count > 0)
     {
         UInt32       playlisttoeditid = UInt32.Parse(playlistview.SelectedItems[0].ImageKey);
         editplaylist frm = new editplaylist(playlisttoeditid);
         frm.ShowDialog();
         #region refresh the main form
         playlistloadingindicator.Visible = true;
         playlistloadingindicator.Active  = true;
         showplaylists();
         playlistloadingindicator.Active  = false;
         playlistloadingindicator.Visible = false;
         #endregion
     }
     else
     {
         MessageBox.Show("Please select a playlist to update");
     }
 }
示例#2
0
 private void editplaylistbtn_Click(object sender, EventArgs e)
 {
     if (playlistview.SelectedItems.Count > 0)
     {
         UInt32 playlisttoeditid = UInt32.Parse(playlistview.SelectedItems[0].ImageKey);
         editplaylist frm = new editplaylist(playlisttoeditid);
         frm.ShowDialog();
         #region refresh the main form
         playlistloadingindicator.Visible = true;
         playlistloadingindicator.Active = true;
         showplaylists();
         playlistloadingindicator.Active = false;
         playlistloadingindicator.Visible = false;
         #endregion
     }
     else MessageBox.Show("Please select a playlist to update");
 }