Ejemplo n.º 1
0
        public void AddSongs(Powerhour Powerhour)
        {
            var openFilesDialog = new OpenFileDialog {
                Filter = "MP3 (.mp3)|*.mp3",
                Multiselect = true
            };

            if (openFilesDialog.ShowDialog() == true) {

                foreach (var file in openFilesDialog.Files) {

                    var song = new Song(file.FullName);
                    var songSample = new SongSample(song);
                    Powerhour.SongSamples.Add(songSample);
                }
            }
        }
Ejemplo n.º 2
0
 public SongSample(Song Song)
     : this(Song, 0, 60)
 {
 }
Ejemplo n.º 3
0
 public SongSample(Song Song, int Start, int End)
 {
     this.Song = Song;
     this.Start = Start;
     this.End = End;
 }