Esempio n. 1
0
 private void InitLoginDialog()
 {
     Btn_Login.Enabled      = true;
     MainUserName.Enabled   = true;
     MainPassword.Enabled   = true;
     MainUserName.BackColor = Color.White;
     if (MainUserName.Items.Count > 0)
     {
         MainUserName.SelectedIndex = 0;
     }
     MainPassword.BackColor = Color.White;
     MainPassword.Focus();
     Btn_Login.BackColor = Color.FromArgb(253, 253, 191);
 }
Esempio n. 2
0
 private void MainUserNameDisplay()
 {
     MainUserName.Items.Clear();
     FileRw.ReadDatFilePassWord(PVar.BZ_ParameterPath + "PassWord.dat", PVar.Login);
     for (var i = 0; i <= 20; i++)
     {
         if (PVar.Login.NewUser[(int)i] != "" && PVar.Login.NewUser[(int)i] != null)
         {
             MainUserName.Items.Add(PVar.Login.NewUser[(int)i]);
         }
     }
     MainUserName.SelectedIndex = 0;
     MainPassword.Focus();
     //Call Start_NumberKey_Process()
     //MainPassword.SelectionStart = 0     '选取的起始位置设为0,即从头开始进行文本框内容的选取
     //MainPassword.SelectionLength = Len(MainPassword.Text)       '选取内容的长度为文本框已经接受的文本长度
 }