using VisionCommon; using System.Windows; using MilCommon; namespace MilUI { /// /// Interaction logic for LineWidthSettingWindow.xaml /// public partial class LineWidthSettingWindow : Window, IPatternSettingWindow { public string WINDOW_TITLE => "Line Intersection"; public LineWidthSettingWindow( PatternAgentBase patternAgent, PatternInfo patternInfo, CameraDisplay milCameraDisplay, FovInfo fovInfo) { InitializeComponent(); SetTitle(); lineWidthSettingView.DataContext = new LineWidthSettingViewModel( patternAgent, patternInfo, milCameraDisplay, fovInfo); } public void SetTitle() { Title = WINDOW_TITLE; } public void ResetPosition() { Left = WindowUtil.GetLeftWithRatioOnMainWindow(0.6); Top = WindowUtil.GetTopWithRatioOnMainWindow(0.05); } } }