/*
* Copyright (c) 2025 LG Electronics Inc.
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
*/
using Aurora;
using Aurora.Api;
using Aurora.Api.Devices;
using Aurora.View;
using VisionCommon;
using System;
using System.Windows;
using System.Windows.Input;
using VisionSequence.Setup;
using VisionCommonUI;
using VisionCommonUI.Resources;
namespace VisionUI.Setup {
///
/// 센터 튜닝 세팅 뷰 모델
///
class CenterTuningSettingViewModel : NotifyPropertyChangedBase, IUpdateRecipe {
private SubSysInfo _SubSysInfo;
private SubSysRecipe _SubSysRecipe;
private ISequence _Seq;
/// 얼라인 델타 처리 이벤트 핸들러
public event EventHandler AlignDelta;
/// 시퀀스 시작 이벤트 핸들러
public event EventHandler SequenceStart;
private CenterTuningRecipe _CenterTuningRecipe;
/// 센터 튜닝 레시피
public CenterTuningRecipe CenterTuningRecipe { get => _CenterTuningRecipe; set => SetProperty(ref _CenterTuningRecipe, value); }
#region ButtonCommand
public ICommand ButtonCommandStart { get; set; }
public ICommand ButtonCommandCancel { get; set; }
public ICommand ButtonCommandSave { get; set; }
#endregion
///
/// 생성자
///
/// 서브 시스템 정보
public CenterTuningSettingViewModel(SubSysInfo subSysInfo) {
_SubSysInfo = subSysInfo;
_SubSysRecipe = VisionRecipeManager.GetSubSysRecipe(subSysInfo);
ButtonCommandStart = new DelegateCommand(new Action