private void chonPhatVideo(object sender, anhDaiDienArgs e) { try { if (dangGiuCtr) { if (dsDangChon.Where(y => y == e.index).Count() != 0) { dsDangChon.RemoveAll(y => y == e.index); } else { dsVideoControl[e.index].lb_duongDanVideo.BackColor = Color.Yellow; dsDangChon.Add(e.index); } dangChonNhieu = true; } else { ucChoiVideo.Play(e.filePath); layThongTinVideo(e.filePath); timer_layThoiGianVideo.Start(); dangChonNhieu = false; dsDangChon.Clear(); lb_playPause.Values.Image = VideoEditor.Properties.Resources.pauseLeave; panel_chonVideoBanDau.Visible = false; ucChoiVideo.BackColor = Color.Black; } } catch (Exception ex) { Console.WriteLine(ex); } }
private void clickAnhDaiDien(object sender, MouseEventArgs e) { var anhDaiDienVideoArg = new anhDaiDienArgs() { index = _index, filePath = _filePath }; anhDaiDienVideoClick anhDaiDienClicks = anhDaiDienClick; if (anhDaiDienClicks != null) { anhDaiDienClicks(this, anhDaiDienVideoArg); } }