Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     m_mc = new MusicCollection();
     Form1 form = new Form1();
     form.Show();
     Application.Run(form);
 }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            m_mc = new MusicCollection();
            Form1 form = new Form1();

            form.Show();
            Application.Run(form);
        }
Exemplo n.º 3
0
        private void PopulateGrid()
        {
            MusicCollection mc = Program.MusicCollection;

            object[] row = new object[4];
            foreach (Track t in mc.Tracks)
            {
                // Artist, Album, Track, Filename
                row[0] = t.Artist.Name;
                row[1] = t.Album.Title;
                row[2] = t.Title;
                row[3] = t.FileName;
                gridCollection.Rows.Add(row);
            }
        }