Ejemplo n.º 1
0
        private void OnButton1Click(object sender, RoutedEventArgs e)
        {
            var connector = new PcoConnector();

            foreach (var song in connector.GetSongs())
            {
                var model = new SongViewModel(song, () => this.importer.GetPresentation(song.Title));
                model.Imported = this.importer.IsImported(song.Title);

                this.Songs.Add(model);
            }
        }
        private void OnButton1Click(object sender, RoutedEventArgs e)
        {
            var connector = new PcoConnector();

            foreach (var song in connector.GetSongs())
            {
                var model = new SongViewModel(song, () => this.importer.GetPresentation(song.Title));
                model.Imported = this.importer.IsImported(song.Title);

                this.Songs.Add(model);
            }
        }