using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CowainHmi
{
    public partial class S1视觉 : S1公共背景
    {
        private string CameraDB = "";

        public S1视觉()
        {
            InitializeComponent();
        }
        private void S1视觉_Load(object sender, EventArgs e)
        {
            ProgramAdds();
        }
        private void ProgramAdds()
        {
            CameraDB = "DB1100";
            #region CMD
            this.btnCameraSetSN.监控地址 = $"{CameraDB}.16";
            this.btnCameraFunction.监控地址 = $"{CameraDB}.14";
            this.btnProductChoice.监控地址 = $"{CameraDB}.76";
            this.btnCameraNum.监控地址 = $"{CameraDB}.80";

            this.btnCameraReq.开关功能.地址[0] = $"{CameraDB}.78.1";
            this.btnCameraReq.监控地址 = $"{CameraDB}.78.1";
            this.btnLightOpen.开关功能.地址[0] = $"{CameraDB}.78.5";
            this.btnLightOpen.监控地址 = $"{CameraDB}.1688.0";
            this.btnReCalibrate.开关功能.地址[0] = $"{CameraDB}.78.3";
            this.btnReCalibrate.监控地址 = $"{CameraDB}.78.3";
            this.btnEnableCamera.开关功能.地址[0] = $"{CameraDB}.78.0";
            this.btnEnableCamera.监控地址 = $"{CameraDB}.78.0";
            this.btnClearCameraData.开关功能.地址[0] = $"{CameraDB}.78.2";
            this.btnClearCameraData.监控地址 = $"{CameraDB}.78.2";
            this.btnCameraRes.开关功能.地址[0] = $"{CameraDB}.78.4";
            this.btnCameraRes.监控地址 = $"{CameraDB}.78.4";
            #endregion

            #region
            rcvCameraSN.监控地址 = $"{CameraDB}.650";
            rcvNetOK.指示灯地址 = $"{CameraDB}.82.0";
            rcvCameraCMD.监控地址 = $"{CameraDB}.596";
            rcvCameraProduct.监控地址 = $"{CameraDB}.604";
            rcvCameraNum.监控地址 = $"{CameraDB}.608";
            rcvCameraResult.监控地址 = $"{CameraDB}.612";
            rcvCameraStatus.监控地址 = $"{CameraDB}.616";
            rcvCameraX.监控地址 = $"{CameraDB}.620";
            rcvCameraY.监控地址 = $"{CameraDB}.630";
            rcvCameraR.监控地址 = $"{CameraDB}.640";
            #endregion


        }

        private void label3_Click(object sender, EventArgs e)
        {

        }
    }
}
