示例#1
0
 private void btnPlayAd_Click(object sender, EventArgs e)
 {
     if (m_media is IPlay)
     {
         IPlay video = m_media as IPlay;
         AdvertisementPlayer adMedia = new AdvertisementPlayer(video);
         adMedia.Advertisement = new Advertisement("http://www.agiledon.com");
         adMedia.Play();
     }
 }
示例#2
0
        private void btnPlayAdCR_Click(object sender, EventArgs e)
        {
            CopyRightPlayer copyrightMedia = new CopyRightPlayer(new Rm());

            copyrightMedia.CopyRightMark = new CopyRight(@"Copyright @2006");
            AdvertisementPlayer adMedia = new AdvertisementPlayer(copyrightMedia);

            adMedia.Advertisement = new Advertisement("http://www.agiledon.com");
            adMedia.Play();
        }