Пример #1
0
 /// <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();
     }
 }
Пример #2
0
        /// <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();
            }
        }