Esempio n. 1
0
 public virtual void InsertDisc(Disc d)
 {
     DiscPresence = true;
     TrackControl.CurrentDiskName = d.Name;
     TrackControl.Tracks = d.Tracks;
     TrackControl.NumberOfTrack = d.NumberOfTracks;
     TrackControl.CurrentTrackName = d.Tracks[TrackControl.CurrentTrack - 1];
 }
Esempio n. 2
0
 public virtual IMediaPlayer CreateMediaPlayer()
 {
     IMediaPlayer device = new MediaPlayer(false, PlayerModes.stop, false, new Sound(10, 0, 100, 1), new TrackControl(1), new Mode());
     string[] tracks = new string[] { "one", "two", "thre" };
     Disc disc = new Disc("Пробный", tracks);
     device.InsertDisc(disc);
     return device;
 }