private void BtnRpeat_OnClick(object sender, RoutedEventArgs e)
 {
     try
     {
         timer.Stop();
         Vidoe_MediaElement.Position = TimeSpan.Zero;
         Vidoe_MediaElement.Play();
         timer.Start();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
 }
        public Video_MediaPlayer_Window(string path)
        {
            InitializeComponent();
            this.Title = "Video MediaPlayer (" + Settings.Application_Name + ")";

            Vidoe_MediaElement.Source = new Uri(path);
            Vidoe_MediaElement.Play();

            timer          = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick    += timer_Tick;
            timer.Start();
            if (Settings.FlowDirection_RightToLeft)
            {
                this.FlowDirection = FlowDirection.RightToLeft;
            }
        }
        private void BtnPlay_OnClick(object sender, RoutedEventArgs e)
        {
            try
            {
                btnPlay.Visibility  = Visibility.Collapsed;
                btnPause.Visibility = Visibility.Visible;

                if (SliderVideo.Value > 0)
                {
                    Vidoe_MediaElement.Play();
                    timer.Start();
                }
                else
                {
                    Vidoe_MediaElement.Position = TimeSpan.FromSeconds(0);
                    Vidoe_MediaElement.Play();
                    timer.Start();
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }