28 lines
904 B
C#
28 lines
904 B
C#
using VisionCommon;
|
|
using System.Windows;
|
|
|
|
namespace MilUI {
|
|
/// <summary>
|
|
/// Interaction logic for BarCodeSettingWindow.xaml
|
|
/// </summary>
|
|
public partial class BarCodeSettingWindow : Window, IPatternSettingWindow {
|
|
public string WINDOW_TITLE => "Bar Code";
|
|
|
|
public BarCodeSettingWindow(
|
|
PatternAgentBase patternAgent, PatternInfo patternInfo, CameraDisplay milCameraDisplay, FovInfo fovInfo) {
|
|
InitializeComponent();
|
|
SetTitle();
|
|
barCodeSettingView.DataContext = new BarCodeSettingViewModel(patternAgent, patternInfo, milCameraDisplay, fovInfo);
|
|
}
|
|
|
|
public void SetTitle() {
|
|
Title = WINDOW_TITLE;
|
|
}
|
|
|
|
public void ResetPosition() {
|
|
Left = WindowUtil.GetLeftWithRatioOnMainWindow(0.6);
|
|
Top = WindowUtil.GetTopWithRatioOnMainWindow(0.2);
|
|
}
|
|
}
|
|
}
|