コード例 #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);
            }
        }
コード例 #2
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);
            }
        }