Beispiel #1
0
        private void doiChoPhanTu(int index1, int index2)
        {
            ThongTinCatVideo thongTin = danhSachVideoDuocCat[index1];

            danhSachVideoDuocCat[index1] = danhSachVideoDuocCat[index2];
            danhSachVideoDuocCat[index2] = thongTin;
        }
Beispiel #2
0
        private void kryptonButton5_Click(object sender, EventArgs e)
        {
            //if (tocDoPhat.GetCurrentMedia() == null)
            //    return;
            var cut = new ThongTinCatVideo()
            {
                videoPath       = playingVideo.FileInfo.FullName,
                startTime       = SecondToTimespan(userControl11.startPointTime).ToString(),
                stopTime        = SecondToTimespan(userControl11.stopPointTime).ToString(),
                subTime         = SecondToTimespan(userControl11.stopPointTime - userControl11.startPointTime).ToString(),
                startPosPercent = userControl11.startPointPos,
                stopPosPercent  = userControl11.stopPointPos,
            };

            danhSachVideoDuocCat.Add(cut);
            GrV_thongTinCat.DataSource = null;
            GrV_thongTinCat.DataSource = danhSachVideoDuocCat;
        }
Beispiel #3
0
        private void btn_playVideoCut_Click(object sender, EventArgs e)
        {
            ThongTinCatVideo video = null;

            try
            {
                video = danhSachVideoDuocCat[hangDuocChon];
            }
            catch
            {
                return;
            }
            if (video == null)
            {
                return;
            }
            ucChoiVideo.Play(video.videoPath);
            userControl11.startPointPos = video.startPosPercent;
            userControl11.stopPointPos  = video.stopPosPercent;
        }