Exemple #1
0
 private void KlipStop(object sender, RoutedEventArgs e)
 {
     Klip.Stop();
     if (timer != null)
     {
         timer.Stop();
     }
 }
Exemple #2
0
 private void CzasO_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
 {
     Klip.Pause();
     if (timer != null)
     {
         timer.Stop();
     }
 }
Exemple #3
0
 private void KlipPlay(object sender, RoutedEventArgs e)
 {
     Klip.Play();
     if (timer != null)
     {
         timer.Start();
     }
     KlipIsPlaying = true;
 }
Exemple #4
0
 private void Zaladuj_na_starcie(object sender, RoutedEventArgs e)
 {
     Klip.ScrubbingEnabled = true;
     //    Klip_MediaOpened(sender, e);
     Klip.Stop();
     if (Klip.Source != null)
     {
         KlipPlay(sender, e);
     }
 }
Exemple #5
0
 private void KlipPause(object sender, RoutedEventArgs e)
 {
     // if Klip.IsMuted  Klip.Pause()
     if (KlipIsPlaying)
     {
         Klip.Pause();
         KlipIsPlaying      = false;
         PlayButton.Content = " Wznów ";
     }
     else
     {
         KlipPlay(sender, e);
         PlayButton.Content = " Pauza    ";
     }
 }
Exemple #6
0
 private void CzasO_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e)
 {
     Klip.Play();
     timer.Start();
 }