Beispiel #1
0
 public JukeboxForm()
 {
     InitializeComponent();
     this.myStore       = new JukeboxStore("The Nuke Juke");
     this.frmBeatles    = new BeatlesFanForm(); // the window for Beatles fan
     this.frmPromo      = new PromoBoardForm(); // the window for promotions
     this.Text          = myStore.Name;
     myStore.AddedSong += frmBeatles.InformAboutBeatlesSong;
     AddTestData();
     lLOfPlayedSongs = new LLOfPlayedSongs();
 }
Beispiel #2
0
        public JukeboxForm()
        {
            InitializeComponent();
            this.myStore    = new JukeboxStore("The Nuke Juke");
            this.frmBeatles = new BeatlesFanForm(); // the window for Beatles fan
            this.frmPromo   = new PromoBoardForm(); // the window for promotions
            this.Text       = myStore.Name;

            this.myStore.processBeatles       += new JukeboxStore.InterestingSongHandler(frmBeatles.InformAboutBeatlesSong);
            this.myStore.processBeatlesChange += new JukeboxStore.InterestingSongHandler(frmBeatles.InformAboutBeatlesSong);

            this.myStore.processPromotion += new JukeboxStore.InterestingSongPromotionHandler(frmPromo.PromoteCheapSong);

            AddTestData();
        }