private void rgpPsd_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (this.rgpPsd.SelectedIndex)
            {
            case 0:
            {
                this.edtPsd.Visible = false;
                this.btnOK.Text     = "登  录";
            }
            break;

            case 1:
            {
                this.edtPsd.Text = string.Empty;
                //this.edtPsd.Text = KeyMacOperate.GetMacEx("0100C0A87BD1FFFFFF00C0A87BFED3A24E01000000001A0AEB2A00000126");
                this.edtPsd.Visible = true;
                this.btnOK.Text     = "保  存";
                ControlUtilityTool.SetFocus(this.edtPsd);
            }
            break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        protected override void InitUIOnShown()
        {
            base.InitUIOnShown();

            ControlUtilityTool.SetITLTextEditStyle(this.edtPath);

            this.ReadXMLConfig();
            this.RefreshUIByConfig();
            ControlUtilityTool.SetFocus(this.edtPath);
        }
        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];//采用的样式
        }