Exemplo n.º 1
0
        public FilmA()
        {
            InitializeComponent();
            // Film jeden = new Film(1, @"C:\Users\Marcin\source\repos\EduAppProba\Grafiki\Dopalacze1_Wplyw_WERSJA2popr2-Ramsar_3000.mp4", "jedynka");
            //Video1.Source = new Uri(jeden.FilmAdress);
            Video1.Play();
            Video1.Stop();
            DispatcherTimer timer = new DispatcherTimer();

            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick    += timer_Tick;
            timer.Start();
            Klik.ImageSource       = new ImageSourceConverter().ConvertFromString(ZbiorDanych.IkonyProgramu[3].IkoAdress) as ImageSource;
            buttonFilm.Click      += new RoutedEventHandler(buttonFilm_Click);
            buttonFilm.MouseEnter += new MouseEventHandler(buttonFilm_MouseEnter);
            buttonFilm.MouseLeave += new MouseEventHandler(buttonFilm_MouseLeave);
            Menu_image.ImageSource = new ImageSourceConverter().ConvertFromString(ZbiorDanych.IkonyProgramu[8].IkoAdress) as ImageSource;
            Menu.MouseEnter       += new MouseEventHandler(menu_MouseEnter);
            Menu.MouseLeave       += new MouseEventHandler(menu_MouseLeave);
        }
Exemplo n.º 2
0
 private void Element_MediaEnded(object sender, EventArgs e)
 {
     Video1.Stop();
 }
Exemplo n.º 3
0
 private void btnStop_Click(object sender, RoutedEventArgs e)
 {
     Video1.Stop();
 }