/* * Copyright (c) 2025 LG Electronics Inc. * SPDX-License-Identifier: LicenseRef-LGE-Proprietary */ using System.Windows.Controls; using VisionCommon; namespace VisionUI.Setup { /// /// 센터 튜닝 세팅 뷰 /// CenterTuningSettingView.xaml behind code /// public partial class CenterTuningSettingView : UserControl, IUpdateRecipe { private SubSysInfo _SubSysInfo; private SubSysRecipe _SubSysRecipe; /// /// 생성자 /// /// 서브시스템 정보 public CenterTuningSettingView(SubSysInfo subSysInfo) { _SubSysInfo = subSysInfo; _SubSysRecipe = VisionRecipeManager.GetSubSysRecipe(subSysInfo); InitializeComponent(); } private void uc_IsVisibleChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e) { bool isVisible = (bool)e.NewValue; if (isVisible == true) { RefreshVisionRecipes(); UpdateRecipeFromFile(); } } public void RefreshVisionRecipes() { _SubSysRecipe = VisionRecipeManager.GetSubSysRecipe(_SubSysInfo); } public void UpdateRecipeFromFile() { (DataContext as CenterTuningSettingViewModel).UpdateRecipeFromFile(); } public void UpdateRecipeFromUI() { throw new System.NotImplementedException(); } } }