private void customizeToolStripMenuItem_Click(object sender, EventArgs e) { frmCustomize custom = new frmCustomize(); custom.id = id[listBox1.SelectedIndex]; custom.ShowDialog(); //AFTER CUSTOMIZE listBox1.Items.Clear(); dataGridView1.DataSource = ""; conn.Open(); ds = new DataSet(); da = new SqlDataAdapter("SELECT * FROM Playlist", conn); da.Fill(ds, "Playlist"); DataRowCollection dt = ds.Tables["Playlist"].Rows; for (int i = 0; i < dt.Count; i++) { listBox1.Items.Add(dt[i]["Name"].ToString()); } conn.Close(); }
private void customizePlaylistToolStripMenuItem_Click(object sender, EventArgs e) { frmCustomize customize = new frmCustomize(); customize.Show(); }