private void skinButton_login_Click(object sender, EventArgs e) { string username = Encrypt.GetMd5Hash(Login_username.Text); string password = Login_password.Text; password = Encrypt.StringToBase64string(password); string url = XMLDealTool.getUrlPath() + "cloudkey/login_check.php"; string data = "username="******"&password="******"ok") != -1) { MainUI mainui = new MainUI(); this.Visible = false; mainui.setUserPass(username, password); mainui.Show(); this.Hide(); } else { MessageBox.Show("密码错误", result, MessageBoxButtons.OK, MessageBoxIcon.Error); } }