Example #1
0
        private bool RecipeChange(int _ID, string _RecipeName)
        {
            bool _Result = true;

            if (true == ParamManager.RecipeReload(_ID, _RecipeName))
            {
                //LDH, 2018.07.26, Light File 따로 관리
                //LJH, 2019.01.28 For문 안으로 위치 변경.
                LightControlManager.RecipeChange(_ID, _RecipeName);

                for (int iLoopCount = 0; iLoopCount < ISMModuleCount; ++iLoopCount)
                {
                    InspSysManager[iLoopCount].SetInspectionParameter(ParamManager.InspParam[iLoopCount], false);
                    InspSysManager[iLoopCount].GetInspectionParameterRef(ref ParamManager.InspParam[iLoopCount]);
                }

                UpdateRibbonRecipeName(_RecipeName);
            }
            else
            {
                MessageBox.Show(new Form {
                    TopMost = true
                }, "Recipe 변경에 실패했습니다.\nRecipe를 확인하세요.");
                _Result = false;
            }

            ResultBaseWnd.SetLastRecipeName((eProjectType)ParamManager.SystemParam.ProjectType, ParamManager.SystemParam.LastRecipeName);

            return(_Result);
        }
Example #2
0
        private bool RecipeChange(string _RecipeName, string _SrcRecipe = "")
        {
            bool _Result = true;

            if (true == ParamManager.RecipeReload(_RecipeName))
            {
                _RecipeName = ParamManager.SystemParam.LastRecipeName;

                //LDH, 2018.07.26, Light File 따로 관리
                LightControlManager.RecipeChange(_RecipeName, _SrcRecipe);
                ResultBaseWnd.SetLastRecipeName((eProjectType)ParamManager.SystemParam.ProjectType, _RecipeName);

                for (int iLoopCount = 0; iLoopCount < ISMModuleCount; ++iLoopCount)
                {
                    InspSysManager[iLoopCount].SetInspectionParameter(ParamManager.InspParam[iLoopCount], false);
                    InspSysManager[iLoopCount].GetInspectionParameterRef(ref ParamManager.InspParam[iLoopCount]);
                }

                UpdateRibbonRecipeName(_RecipeName);
            }
            else
            {
                //MessageBox.Show(new Form { TopMost = true }, "Recipe 변경에 실패했습니다.\nRecipe를 확인하세요.");
                CMsgBoxManager.Show("Recipe 변경에 실패했습니다. \nRecipe를 확인하세요", "", true);
                _Result = false;
            }

            return(_Result);
        }