Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            IAlbumManager manager = new AlbumManager();
            List <Album>  albums  = manager.GetAlbumList();

            foreach (Album _album in albums)
            {
                listBox1.Items.Add(string.Format("{0}共有{1}张相片!", _album.AlbumName, _album.SubPhotos.Count));
            }
        }