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(); MotionCard.OnMonitorInvoke += MotionCard_OnMonitorInvoke; //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 MotionCard_OnMonitorInvoke(DateTime arg1, string arg2, IDevice arg3, IMonitorSet arg4) { throw new NotImplementedException(); } 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(); } } }