public static PwdUpDate Create(string pwd, binddata binddata) { OldPwd = pwd; databind1 = binddata; if (hyzj == null) { hyzj = new PwdUpDate(); } return(hyzj); }
private void szmmbutton_Click(object sender, EventArgs e) { if (szmmbutton.Text == "修改密码") { //那就将密码传入进去 string pwd = modelmember.password; PwdUpDate from = PwdUpDate.Create(pwd, SetPwd); from.Show(); } else { szpassword pwd = szpassword.Create(fuzhipwd); pwd.Show(); pwd.Focus(); } }
private void PwdUpDate_FormClosing(object sender, FormClosingEventArgs e) { hyzj = null; }