50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using Aurora.Api;
|
|
using System;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using VisionCommon;
|
|
|
|
namespace MilUI {
|
|
/// <summary>
|
|
/// Interaction logic for MultiOcrParamSettingView.xaml
|
|
/// </summary>
|
|
public partial class MultiOcrParamSettingView : UserControl, IDisposable {
|
|
private Logger _Logger = new Logger(typeof(MultiOcrParamSettingView).Name);
|
|
|
|
private PatternAgentBase _patternAgent;
|
|
private PatternInfo _patternInfo;
|
|
private CameraDisplay _cameraDisplay;
|
|
private FovInfo _fovInfo;
|
|
|
|
public MultiOcrParamSettingView(
|
|
PatternAgentBase patternAgent, PatternInfo subPatternInfo, CameraDisplay cameraDisplay, FovInfo fovInfo) {
|
|
|
|
_patternAgent = patternAgent;
|
|
_patternInfo = subPatternInfo;
|
|
_cameraDisplay = cameraDisplay;
|
|
_fovInfo = fovInfo;
|
|
|
|
InitializeComponent();
|
|
}
|
|
|
|
public bool IsChecked() {
|
|
return (bool)cbEnabled.IsChecked;
|
|
}
|
|
|
|
public void Dispose() {
|
|
(DataContext as MultiOcrParamSettingViewModel).Dispose();
|
|
}
|
|
|
|
private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) {
|
|
bool isVisible = (bool)e.NewValue;
|
|
if (isVisible == true) {
|
|
//(DataContext as MultiOcrParamSettingViewModel).Clear();
|
|
}
|
|
}
|
|
}
|
|
}
|