Exemplo n.º 1
0
        /*************************************************************
        *
        * Play
        *
        *************************************************************/

        private void Play_Click(object sender, RoutedEventArgs e)
        {
            Button   button = sender as Button;
            FeedItem fi     = button.Tag as FeedItem;

            if (!fi.IfDownloaded)
            {
                MessageBox.Show(string.Format("This file needs to be downloaded first. \r\n{0}", fi.Title.Substring(0, 40)));
                return;
            }

            VideoWindow vw = new VideoWindow();

            vw.StartFeed(fi);
            vw.Title = fi.Title;
            vw.Show();
        }
Exemplo n.º 2
0
        /*************************************************************
        *
        * Play
        *
        *************************************************************/

        private void Play_Click (object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;
            FeedItem fi = button.Tag as FeedItem;

            if (!fi.IfDownloaded)
            {
                MessageBox.Show (string.Format ("This file needs to be downloaded first. \r\n{0}", fi.Title.Substring (0, 40)));
                return;
            }

            VideoWindow vw = new VideoWindow ();
            vw.StartFeed (fi);
            vw.Title = fi.Title;
            vw.Show ();
        }