45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
using System.Windows.Controls;
|
|
using VisionCommon;
|
|
|
|
namespace VisionUI.Setup {
|
|
/// <summary>
|
|
/// 센터 튜닝 세팅 뷰
|
|
/// CenterTuningSettingView.xaml behind code
|
|
/// </summary>
|
|
public partial class CenterTuningSettingView : UserControl, IUpdateRecipe
|
|
{
|
|
private SubSysInfo _SubSysInfo;
|
|
private SubSysRecipe _SubSysRecipe;
|
|
/// <summary>
|
|
/// 생성자
|
|
/// </summary>
|
|
/// <param name="subSysInfo">서브시스템 정보</param>
|
|
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();
|
|
}
|
|
}
|
|
} |