Beispiel #1
0
        void SetCtrlsVisbleWithDifferentDeviceType()
        {
            if (myIPModule == null)
            {
                return;
            }

            RemoteConnection = new Connetion(SubNetID, DeviceID, mywdDevicerType);
            tabKeys.Controls.Add(RemoteConnection);
            RemoteConnection.BringToFront();
            RemoteConnection.Dock = DockStyle.Fill;

            networkinfo = new NetworkInForm(SubNetID, DeviceID, mywdDevicerType);
            panel1.Controls.Add(networkinfo);
            networkinfo.Dock = DockStyle.Top;
            networkinfo.BringToFront();

            if (IPmoduleDeviceTypeList.RFIpModuleV1.Contains(mywdDevicerType) || IPmoduleDeviceTypeList.RFIpModuleV2.Contains(mywdDevicerType))
            {
                GbRf.Visible = true;
                if (IPmoduleDeviceTypeList.RFIpModuleV1.Contains(mywdDevicerType))
                {
                    tabControl.TabPages.Remove(tabRfButton);
                }
            }
            else if (IPmoduleDeviceTypeList.IpModuleV3TimeZoneUrl.Contains(mywdDevicerType)) // 新版一端口
            {
                GbRf.Visible      = false;
                gbNetwork.Visible = false;
                tabControl.TabPages.Remove(tabRfButton);
            }
            else
            {
                GbRf.Visible = false;
                tabControl.TabPages.Remove(tabRF);
                tabControl.TabPages.Remove(tabRfButton);
            }

            for (int i = 1; i <= 255; i++)
            {
                cbThrough.Items.Add(i.ToString());
            }
        }
Beispiel #2
0
        void SetCtrlsVisbleWithDifferentDeviceType()
        {
            toolStrip1.Visible = (CsConst.MyEditMode == 0);
            panel2.Controls.Clear();
            deviceNetworkInformation = new NetworkInForm(SubNetID, DevID, myintDeviceTpye);
            panel2.Controls.Add(deviceNetworkInformation);
            deviceNetworkInformation.Dock = DockStyle.Fill;
            deviceNetworkInformation.BringToFront();
            deviceNetworkInformation.Visible = true;

            if (CameraNvrDeviceType.nvrThridPartDeviceType.Contains(myintDeviceTpye)) // network vedio recorder
            {
                tabControl1.TabPages.Remove(tabCamera);
            }
            else
            {
                tabControl1.TabPages.Remove(tabNvr);
            }
        }