public void FreeInspectionParameters(ref InspectionParameter _InspParam)
 {
     for (int iLoopCount = 0; iLoopCount < _InspParam.InspAreaParam.Count; ++iLoopCount)
     {
         for (int jLoopCount = 0; jLoopCount < _InspParam.InspAreaParam[iLoopCount].InspAlgoParam.Count; ++jLoopCount)
         {
             FreeInspectionParameter(ref _InspParam, iLoopCount, jLoopCount);
         }
     }
 }
        /// <summary>
        /// Set Inspection Parameter : (InspectionWindow(Teaching) -> Inspection System Manager)
        /// </summary>
        /// <param name="_InspParam">Inspection Parameter</param>
        /// <param name="_IsNew">Is New Parameter</param>
        public void SetInspectionParameter(InspectionParameter _InspParam, bool _IsNew = true)
        {
            if (InspParam != null)
            {
                FreeInspectionParameters(ref InspParam);
            }
            CParameterManager.RecipeCopy(_InspParam, ref InspParam);

            InspWnd.SetInspectionParameter(InspParam, _IsNew);

            //Reference File(VPP) Load
        }
        public void GetInspectionParameterRef(ref InspectionParameter _InspParamDest)
        {
            if (_InspParamDest != null)
            {
                FreeInspectionParameters(ref _InspParamDest);
            }
            CParameterManager.RecipeCopy(InspParam, ref _InspParamDest);

            for (int iLoopCount = 0; iLoopCount < InspParam.InspAreaParam.Count; ++iLoopCount)
            {
                for (int jLoopCount = 0; jLoopCount < InspParam.InspAreaParam[iLoopCount].InspAlgoParam.Count; ++jLoopCount)
                {
                    eAlgoType _AlgoType = (eAlgoType)InspParam.InspAreaParam[iLoopCount].InspAlgoParam[jLoopCount].AlgoType;

                    if (eAlgoType.C_PATTERN == _AlgoType)
                    {
                    }
                }
            }
        }
        public void Initialize(Object _OwnerForm, int _ProjectType, InspectionSystemManagerParameter _InspSysManagerParam, InspectionParameter _InspParam, string _RecipeName, string _FolderPath)
        {
            ProjectType = (eProjectType)_ProjectType;
            ProjectItem = (eProjectItem)_InspSysManagerParam.ProjectItem;

            _InspParam.ResolutionX = _InspSysManagerParam.ResolutionX;
            _InspParam.ResolutionY = _InspSysManagerParam.ResolutionY;

            SetISMParameter(_InspSysManagerParam);
            SetInspectionParameter(_InspParam);

            InspWnd.Initialize(_OwnerForm, ID, InspParam, ProjectType, ProjectItem, InspWndName, _RecipeName, IsSimulationMode, _FolderPath);
            InspWnd.InitializeResolution(_InspSysManagerParam.ResolutionX, _InspSysManagerParam.ResolutionY);
            InspWnd.InitializeCam(_InspSysManagerParam.CameraType, _InspSysManagerParam.CameraConfigInfo, Convert.ToInt32(_InspSysManagerParam.ImageSizeWidth), Convert.ToInt32(_InspSysManagerParam.ImageSizeHeight), _InspSysManagerParam.CameraRotate);
            InspWnd.InspectionWindowEvent += new InspectionWindow.InspectionWindowHandler(InspectionWindowEventFunction);
        }
 public void FreeInspectionParameter(ref InspectionParameter _InspParam, int _AreaIndex, int _AlgoIndex)
 {
     if (eAlgoType.C_PATTERN == (eAlgoType)_InspParam.InspAreaParam[_AreaIndex].InspAlgoParam[_AlgoIndex].AlgoType)
     {
     }
 }