领胜LDS 键盘AOI检测项目
wells.liu
2020-07-06 df121d5d8685336632aee169541dd811b518bcfd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Bro.Common.Interface;
using Bro.Common.Base;
 
namespace Bro.UI.Device.Winform
{
    public partial class CtrlMotionCardRunBase : UserControl, IRunCtrl
    {
        public CtrlMotionCardRunBase()
        {
            InitializeComponent();
        }
 
        public CtrlMotionCardRunBase(IDevice device)
        {
            InitializeComponent();
            Device = device;
 
            InitialLayout();
            //CvImage = new Canvas();
            //CvImage.IsShowElementList = false;
            //CvImage.IsShowROITool = false;
            //CvImage.Dock = DockStyle.Fill;
            //Controls.Add(CvImage);
            //Camera.OnImageUpdated += Camera_UpdateShowImage;
            //Camera.OnElementsUpdated += Camera_OnElementsUpdated;
            //Camera.OnCameraOpModeChanged += Camera_OnCameraOpModeChanged;
 
            //InitialToolBarVisible(); 
        }
 
        private void InitialLayout()
        {
 
        }
 
        public IDevice Device { get; set; }
 
        protected MotionCardBase MotionCard
        {
            get => Device as MotionCardBase;
        }
 
        private void buttonMotionCardOperation_Click(object sender, EventArgs e)
        {
            FrmMotionCardOperationBase motionCardOperationBase = new FrmMotionCardOperationBase(Device);
            motionCardOperationBase.Show();
        }
    }
}