示例#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);
                }
            }
        }
示例#2
0
 public SongSample(Song Song)
     : this(Song, 0, 60)
 {
 }
示例#3
0
 public SongSample(Song Song, int Start, int End)
 {
     this.Song = Song;
     this.Start = Start;
     this.End = End;
 }