protected override void InitUIOnShown() { base.InitUIOnShown(); ControlUtilityTool.SetITLTextEditStyle(this.edtPath); this.ReadXMLConfig(); this.RefreshUIByConfig(); ControlUtilityTool.SetFocus(this.edtPath); }
protected override void InitUIOnLoad() { base.InitUIOnLoad(); ControlUtilityTool.SetPanelControlBorderLines(this.pnlContainer, true, true, true, true); ControlUtilityTool.SetITLLayOutControlStyle(this.lcItem); ControlUtilityTool.SetITLTextEditStyle(this.edtDevIp); ControlUtilityTool.SetTextEditIPRegEx(this.edtDevIp); ControlUtilityTool.SetITLComboBoxEditStyle(this.cmbCtrlProperties); this.edtDevIp.Properties.MaxLength = 15; this.edtDevIp.KeyPress += CommonUtils.edtIp_KeyPress; this.InitDevPropCmbEdit(); }
protected override void InitUIOnShown() { HintProvider.WaitingDone(Application.ProductName); base.InitUIOnShown(); ControlUtilityTool.SetITLTextEditStyle(this.edtPsd); ControlUtilityTool.SetSuperToolTip(this.edtPsd, "密码必须由8位纯数字组成!"); this.rgpPsd.SelectedIndex = 1; this.edtPsd.Properties.MaxLength = 8; this.edtPsd.KeyPress += CommonUtils.edtPort_KeyPress; //只能输入整形 ControlUtilityTool.SetFocus(this.edtPsd); char a = '*'; List <char> lisrt = new List <char>(); lisrt.Add(a); //指定密码框样式 this.edtPsd.Properties.PasswordChar = lisrt[0];//采用的样式 }
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>(); }