Пример #1
0
 public TimeDiffVideo(bool isSyncLead, string fileName, TimeDiffPosition position, VideoPlayerVM videoPlayerVM)
 {
     FileName             = fileName;
     IsSyncLead           = isSyncLead;
     CurrentPosition      = position;
     SnapShotsOnPositions = new Dictionary <int, System.Drawing.Bitmap>();
     VideoPlayerVM        = videoPlayerVM;
 }
Пример #2
0
        public static void AddMeasurement(TimeSpan CurTime, List <System.Drawing.Bitmap> SnapShoots)
        {
            CurrentMeasurement++;
            TimeDiffPosition diffPosition = new TimeDiffPosition(CurrentMeasurement, CurTime);

            TimeDiffPositions.Add(diffPosition);
            TimeDiffVideos[CurrentMeasurement - 1].CurrentPosition = diffPosition;

            foreach (var v in TimeDiffVideos)
            {
                v.SnapShotsOnPositions.Add(CurrentMeasurement - 1, SnapShoots[TimeDiffVideos.IndexOf(v)]);
            }
        }