public FrmVolumeDisplay(IMP3Player IMP3Player) { InitializeComponent(); _IMP3Player = IMP3Player; _IMP3Player.AddObserver(this); }
public FrmMP3Display(IMP3Player mP3Player, IMP3Controller mP3Controller) { InitializeComponent(); _MP3Player = mP3Player; _MP3Controller = mP3Controller; _MP3Player.AddObserver((ISongObserver)this); _MP3Player.AddObserver((IVolumeObserver)this); FrmVolumeDisplay frmVolumeDisplay = new FrmVolumeDisplay(_MP3Player); frmVolumeDisplay.Show(); Update(1); Update(null); }