예제 #1
0
        void lazypicscrListFrame_anyPickClicked(object sender, EventArgs e)
        {
            String filePath  = ((PictureBox)sender).ImageLocation as String;
            String frameName = Path.GetFileName(filePath);

            Frame frame = Utils.Decoder.DecodeFrameFromName(frameName);

            String[] files = Searching.GetShotFrame(frame, Path.GetDirectoryName(filePath));
            //foreach (String item in files)
            //{
            //    Logger.d(item);
            //}

            ClearAndAddImagesToPanelShot(files.ToList(), pnFrameShot);
            //Console.WriteLine(Path.Combine(Config.VIDEO_DATA_PATH, mappingVideoName[frame.VideoId]));
            axWMP.URL = Path.Combine(ConfigCommon.VIDEO_DATA_PATH, mappingVideoName[frame.VideoId]);
            axWMP.Ctlcontrols.currentPosition = (double)(frame.FrameNumber / mappingFPS[frame.VideoId]); // in seconds
            //Console.WriteLine((double)(frame.FrameNumber));
            //Console.WriteLine((double)(mappingFPS[frame.VideoId]));
            //Console.WriteLine((double)(frame.FrameNumber / mappingFPS[frame.VideoId]));
        }