private void KlipStop(object sender, RoutedEventArgs e) { Klip.Stop(); if (timer != null) { timer.Stop(); } }
private void CzasO_DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e) { Klip.Pause(); if (timer != null) { timer.Stop(); } }
private void KlipPlay(object sender, RoutedEventArgs e) { Klip.Play(); if (timer != null) { timer.Start(); } KlipIsPlaying = true; }
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); } }
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 "; } }
private void CzasO_DragCompleted(object sender, System.Windows.Controls.Primitives.DragCompletedEventArgs e) { Klip.Play(); timer.Start(); }