35 lines
968 B
C#
35 lines
968 B
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using System;
|
|
using System.Windows.Controls;
|
|
|
|
namespace CogUI {
|
|
/// <summary>
|
|
/// Interaction logic for LineSettingView.xaml
|
|
/// </summary>
|
|
public partial class LineSettingView : UserControl, IDisposable {
|
|
public LineSettingView() {
|
|
InitializeComponent();
|
|
SetEventHandler();
|
|
}
|
|
|
|
private void SetEventHandler() {
|
|
sliderRoiAngle.SliderChangedEvent += SliderChangedEventHandler;
|
|
}
|
|
|
|
private void ClearEventHandler() {
|
|
sliderRoiAngle.SliderChangedEvent -= SliderChangedEventHandler;
|
|
}
|
|
|
|
public void SliderChangedEventHandler(object sender, EventArgs e) {
|
|
(DataContext as LineSettingViewModel).UpdateAngleOfFindRoi(sliderRoiAngle.KeyValue);
|
|
}
|
|
|
|
public void Dispose() {
|
|
ClearEventHandler();
|
|
}
|
|
}
|
|
}
|