public void Inject(IFactory factory)
        {
            _video = (YoutubeEntry)factory[0];

            int duration = 0;
            int.TryParse((string)_video.MediaGroup.Duration, out duration);

            TimeSpan tmp = new TimeSpan(0, 0, duration);

            label1.Text = (tmp).ToString(@"d\.hh\:mm\:ss");
            linkLabel1.Text = (string)_video.Title;
            if (_video.Statistics.ViewCount == null)
            {
                label2.Text = "?";
            }
            else
            {
                label2.Text = _video.Statistics.ViewCount.ToString() + " views";
            }
            linkLabel2.Text = (string)_video.Author[0].Name;

            _currentImageIdx = 0;
            AskPhoto(0);
        }
Esempio n. 2
0
 public void Inject(IFactory theObject)
 {
 }
Esempio n. 3
0
 public void Inject(IFactory feedFact)
 {
     _factory = (PagesFactory)feedFact;
     AskForPage(0);
 }
 public new void Inject(IFactory theObject)
 {
     base.Inject(theObject);
 }