/// <summary> /// 修改密码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEdit_Click(object sender, EventArgs e) { EditPasswordFrm editFrm = new EditPasswordFrm(); editFrm.userName = tbUserName.Text; this.Hide(); editFrm.ShowDialog(); if(editFrm.DialogResult==DialogResult.OK) { this.Show(); } }
/// <summary> /// 修改密码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEdit_Click(object sender, EventArgs e) { EditPasswordFrm editFrm = new EditPasswordFrm(); editFrm.userName = tbUserName.Text; this.Hide(); editFrm.ShowDialog(); if (editFrm.DialogResult == DialogResult.OK) { this.Show(); } }