public static void LampAnalyze(IEnumerable <string> selectedlist)
        {
            foreach (string videofile in selectedlist)
            {
                VideoImaging vi = VideoImaging.Load(videofile);
                if (vi == null)
                {
                    continue;
                }
                VideoImaging = vi;

                Parameters para = Parameters.LoadOrCreate(videofile, vi, true);
                if (para == null)
                {
                    continue;
                }
                Parameters = para;

                MotionData md = vi.AnalizeAll(para);
                if (md == null)
                {
                    continue;
                }
                MotionData = md;

                md.SaveRawData(videofile);
            }
            UnloadVideoFile();
        }
 public static void AnalyzeAllFrames()
 {
     Parameters.Save();
     MotionData = VideoImaging.AnalizeAll(Parameters);
     if (MotionData != null)
     {
         MotionData.SaveRawData(Parameters.VideoFile);
         GraphForm.LoadData(MotionData);
     }
     UpdateAllControll();
     ControllerForm.SwitchTab();
 }