Example #1
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            delete_playlistelements eliminador = new delete_playlistelements();

            eliminador.name     = name;
            eliminador.Location = this.Location;
            eliminador.Show();
            this.Close();
        }
Example #2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     /*
      * if (name != "") {
      * File.Delete(Application.StartupPath + @"\Saved_playlist\"+name.Trim());
      *  if (GR3_UiF.Properties.Settings.Default.lenguaje == "spa")
      *  {
      *      this.metroLabel2.Text = "Lista eliminada";
      *  }
      *  else { metroLabel2.Text = "Playlist deleted"; }
      *  string[] items = Directory.GetFiles(Application.StartupPath + @"\Saved_playlist");
      * listBox1.Items.Clear();
      * foreach (string it in items)
      * {
      *  listBox1.Items.Add(Path.GetFileNameWithoutExtension(it));
      *
      * }
      * }
      * else
      * {
      *      if (GR3_UiF.Properties.Settings.Default.lenguaje == "spa") {
      *      MessageBox.Show("Por favor seleccione una lista de reproduccion");
      *      }
      *      else { MessageBox.Show("Please select a playlist"); }
      *  }
      * }*/
     if (name.Trim().Length >= 1)
     {
         delete_playlistelements dl = new delete_playlistelements();
         dl.name     = name;
         dl.Location = this.Location;
         dl.Show();
         this.Close();
     }
     else
     {
         notificarerror("Por favor seleccione un elemento");
     }
 }