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"); } }
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"); }