Beispiel #1
0
 private void editaudiobtn_Click(object sender, EventArgs e)
 {
     if (audiolistview.SelectedItems.Count == 1)
     {
         ulong     audiotoeditid = ulong.Parse(audiolistview.SelectedItems[0].ImageKey);
         editaudio frm           = new editaudio(audiotoeditid);
         frm.ShowDialog();
         //refresh the audio view list box
         audioloadingindicator.Visible = true;
         audioloadingindicator.Active  = true;
         showaudios(user.currentplaylistid);
         audioloadingindicator.Active  = false;
         audioloadingindicator.Visible = false;
         //end refresh
     }
     else if (audiolistview.SelectedItems.Count < 1)
     {
         MessageBox.Show("Please select an audio to edit");
     }
     else
     {
         MessageBox.Show("Please select an single audio to edit");
     }
 }
 private void editaudiobtn_Click(object sender, EventArgs e)
 {
     if (audiolistview.SelectedItems.Count == 1)
     {
         ulong audiotoeditid = ulong.Parse(audiolistview.SelectedItems[0].ImageKey);
         editaudio frm = new editaudio(audiotoeditid);
         frm.ShowDialog();
         //refresh the audio view list box
         audioloadingindicator.Visible = true;
         audioloadingindicator.Active = true;
         showaudios(user.currentplaylistid);
         audioloadingindicator.Active = false;
         audioloadingindicator.Visible = false;
         //end refresh
     }
     else if (audiolistview.SelectedItems.Count < 1) MessageBox.Show("Please select an audio to edit");
     else MessageBox.Show("Please select an single audio to edit");
 }