コード例 #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();
 }
コード例 #2
0
ファイル: JukeboxForm.cs プロジェクト: fabestine1/MyThing
        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();
        }