protected override void InitUIOnLoad()
        {
            base.InitUIOnLoad();

            ControlUtilityTool.SetITLGridViewStyle(this.gvDevices, true);
            ControlUtilityTool.SetControlDefaultColor(this.pnlOperateArea, ControlUtilityTool.PubBackColorNormal);
            gvDevices.OptionsBehavior.Editable = true; //不允许对单元格进行编辑
            this.InitDevicesDataTable();
            this.InitDevicesGridView(this.gvDevices);
        }
 protected virtual void InitUIOnShown()
 {
     if (UtilityTool.IsDesignMode())
     {
         return;
     }
     this.InitUIEvents();
     this.SetCaptionPosition();
     ControlUtilityTool.SetITLSimpleButtonFlatStyle(this.btnOK);
     ControlUtilityTool.SetPanelControlBorderLines(this.pnlButtom, false, true, true, true);
     ControlUtilityTool.SetPanelControlBorderLines(this.pnlMain, false, true, true, true);
     ControlUtilityTool.SetControlDefaultFont(this.lblCaption, 12, FontStyle.Bold);
     ControlUtilityTool.SetControlDefaultColor(this.lblCaption, Color.White, ColorType.ctForeColor);
     ControlUtilityTool.SetControlDefaultColor(this.pnlMain, ControlUtilityTool.PubBackColorNormal);
     ControlUtilityTool.SetControlDefaultColor(this.pnlButtom, ControlUtilityTool.PubBackColorNormal);
     ControlUtilityTool.SetSuperToolTip(this.btnMin, "最小化");
     ControlUtilityTool.SetSuperToolTip(this.btnMax, "最大化");
     ControlUtilityTool.SetSuperToolTip(this.btnClose, "关闭");
     this.btnOK.Top      = (this.pnlButtom.Height - this.btnOK.Height) / 2;
     this.btnOK.Left     = this.pnlButtom.Width - 25 - this.btnOK.Width;
     this.btnMin.Visible = false;
     this.btnMax.Visible = false;
 }
        protected override void InitUIOnLoad()
        {
            base.InitUIOnLoad();

            ControlUtilityTool.SetITLLayOutControlStyle(this.lcLinkageCtrl);
            ControlUtilityTool.SetITLTextEditStyle(this.edtDevIp);
            ControlUtilityTool.SetITLTextEditStyle(this.edtSubnetMark);
            ControlUtilityTool.SetITLTextEditStyle(this.edtGateWay);
            ControlUtilityTool.SetITLTextEditStyle(this.edtCloudUdpPort);
            ControlUtilityTool.SetITLTextEditStyle(this.edtThirdUdpPort);
            ControlUtilityTool.SetITLComboBoxEditStyle(this.cmbCloudCtrlCount);
            ControlUtilityTool.SetControlDefaultColor(this.sclCtrlItems, ControlUtilityTool.PubBackColorNormal);
            ControlUtilityTool.SetTextEditIPRegEx(this.edtDevIp);
            ControlUtilityTool.SetTextEditIPRegEx(this.edtSubnetMark);
            ControlUtilityTool.SetTextEditIPRegEx(this.edtGateWay);

            this.edtDevIp.Properties.MaxLength        = 15;
            this.edtSubnetMark.Properties.MaxLength   = 15;
            this.edtGateWay.Properties.MaxLength      = 15;
            this.edtCloudUdpPort.Properties.MaxLength = 5;
            this.edtThirdUdpPort.Properties.MaxLength = 5;

            this.edtDevIp.KeyPress        += CommonUtils.edtIp_KeyPress;
            this.edtSubnetMark.KeyPress   += CommonUtils.edtIp_KeyPress;
            this.edtGateWay.KeyPress      += CommonUtils.edtIp_KeyPress;
            this.edtCloudUdpPort.KeyPress += CommonUtils.edtPort_KeyPress;
            this.edtThirdUdpPort.KeyPress += CommonUtils.edtPort_KeyPress;

            this.InitDevicesCountCmdEdit();
            this.InitCloudElevatorItemsUI();

            this.DevType = DeviceType.LinkageCtrl;
            HintProvider.WaitingDone(Application.ProductName);

            FindCount = new Dictionary <string, hintInfo>();
        }