Ejemplo n.º 1
0
        private void showCountriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridView1.DataSource == CdCollection.GetCDs())
            {
                var countries = from cd in CdCollection.GetCDs() select cd.COUNTRY.ToArray();

                dataGridView1.DataSource = countries;
            }
        }
Ejemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     dataGridView1.DataSource = CdCollection.GetCDs();
 }