From fccc60d8897642ef5c39176b8c872b63fe819ae2 Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期五, 20 十一月 2020 10:44:57 +0800
Subject: [PATCH] gocator添加int4类型数据,暂时注释

---
 src/Bro.Common.Model/Forms/FrmDeviceOpConfigEditor.cs |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/Bro.Common.Model/Forms/FrmDeviceOpConfigEditor.cs b/src/Bro.Common.Model/Forms/FrmDeviceOpConfigEditor.cs
index d17062c..4ae9e2e 100644
--- a/src/Bro.Common.Model/Forms/FrmDeviceOpConfigEditor.cs
+++ b/src/Bro.Common.Model/Forms/FrmDeviceOpConfigEditor.cs
@@ -29,7 +29,7 @@
         IOperationConfig backOpConfig = new OperationConfigBase();
         List<IDevice> deviceList = null;
         IDevice currentDevice = null;
-        public FrmDeviceOpConfigEditor(DeviceOpBind bind)
+        public FrmDeviceOpConfigEditor(DeviceOpBind bind, bool isEnableSelectDevice = true)
         {
             InitializeComponent();
 
@@ -56,7 +56,15 @@
                     cboDevice.SelectedIndex = 0;
             }
 
-            cboDevice.SelectedIndexChanged += CboDevice_SelectedIndexChanged;
+            if (isEnableSelectDevice)
+            {
+                cboDevice.Enabled = true;
+                cboDevice.SelectedIndexChanged += CboDevice_SelectedIndexChanged;
+            }
+            else
+            {
+                cboDevice.Enabled = false;
+            }
 
             if (bind.OpConfig == null)
             {

--
Gitblit v1.8.0