private void FormLogin_Load(object sender, EventArgs e) { UIDesign.SetFormMove(this); //读取登录过的用户 tbUser.Items.AddRange(BLL.FileXmlIO.readAllUser()); //文本框赋值 string username, password; BLL.FileXmlIO.readUser(out username, out password); tbUser.Text = username; tbPassword.PasswordChar = '*'; tbPassword.Text = password; //选择框赋值 if (BLL.FileXmlIO.getRemember()) { cbRemember.Checked = true; encodeMD5 = false; } }
private void FormLogin_MouseMove(object sender, MouseEventArgs e) { UIDesign.SetFormMove(this); }