46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using HalconDotNet;
|
|
using Model;
|
|
|
|
namespace Views.Vision
|
|
{
|
|
/// <summary>
|
|
/// AOI.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class AOI : UserControl
|
|
{
|
|
public HWindowControlWPF hsm { get; set; }
|
|
/// <summary>
|
|
/// 视觉功能集合
|
|
/// </summary>
|
|
List<CommonClass> VisualFunctionList { get; set; }
|
|
public AOI()
|
|
{
|
|
InitializeComponent();
|
|
hsm = this.haWindow;
|
|
|
|
VisualFunctionList = new List<CommonClass>() { new CommonClass() { ID = 1, CommonName = "扫码" },
|
|
new CommonClass() { ID = 2, CommonName = "定位"},
|
|
new CommonClass() { ID = 3, CommonName = "检查"},
|
|
new CommonClass() { ID = 4, CommonName = "测量"},
|
|
new CommonClass() { ID = 5, CommonName = "OCR"},};
|
|
|
|
combox.ItemsSource = VisualFunctionList;
|
|
}
|
|
|
|
}
|
|
}
|