Exemplo n.º 1
0
 private void Media_Opened(object sender, RoutedEventArgs e)
 {
     Controller.button.Content = GetTotalRemaining();
     if (!playing)
     {
         playing = true;
         AnimationIn.Play();
     }
 }
Exemplo n.º 2
0
        private void Media_Opened(object sender, RoutedEventArgs e)
        {
            TimeSpan duration = Player.NaturalDuration.TimeSpan;

            if ((duration.Hours * 60) + duration.Minutes == 0)
            {
                Controller.button.Content = duration.Seconds;
            }
            else
            {
                Controller.button.Content = string.Format("{0:00}:{1:00}", (duration.Hours * 60) + duration.Minutes, duration.Seconds);
            }
            AnimationIn.Play();
        }
Exemplo n.º 3
0
 public override void Show()
 {
     if (Source != string.Empty)
     {
         Controller.ToggleChilren();
         if (Player.Source != new Uri(Source))
         {
             Player.Source = new Uri(Source);
         }
         else
         {
             AnimationIn.Play();
         }
         Player.Play();
         Count_Elapsed(null, null);
         counter.Start();
         playing = true;
     }
 }
Exemplo n.º 4
0
 public override void Show()
 {
     if (Sources.Count > 0)
     {
         Controller.ToggleChilren();
         currentIndex = 0;
         if (Player.Source != new Uri(Sources[currentIndex].Item1))
         {
             Player.Source = new Uri(Sources[currentIndex].Item1);
         }
         else
         {
             playing = true;
             AnimationIn.Play();
         }
         Player.Play();
         Count_Elapsed(null, null);
         counter.Start();
     }
 }
Exemplo n.º 5
0
 public virtual void Show()
 {
     AnimationIn.Play();
     Controller.Active = true;
 }