Example #1
0
        /// <summary>
        /// 更改密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tbnChangePassword_Click(object sender, EventArgs e)
        {
            ModPassword modpassword = new ModPassword(Global.longid);

            // modpassword.MdiParent = this;
            modpassword.ShowDialog();
        }
Example #2
0
 private void mod()
 {
     if (dgv_Data.SelectedRows.Count <= 0)
     {
         MessageBox.Show("没有要修改的记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (dgv_Data.SelectedRows.Count > 1)
     {
         MessageBox.Show("一次只能修改一个用户信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (dgv_Data.SelectedRows.Count == 1)
     {
         ModPassword mod = new ModPassword(Convert.ToString(dgv_Data.SelectedRows[0].Cells[0].Value));
         mod.ShowDialog();
         queryUserlist();
     }
 }