Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        private void customizePlaylistToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCustomize customize = new frmCustomize();

            customize.Show();
        }