예제 #1
0
        //第一个选项卡中“修改用户信息”的按钮点击
        private void button4_Click(object sender, EventArgs e)
        {
            ModifyInfoByAdmin miba = new ModifyInfoByAdmin(dataGridView1.CurrentRow.Cells["用户名"].Value.ToString());
            DialogResult      dr   = miba.ShowDialog();

            if (dr == DialogResult.OK)
            {
                dgvGetInfo();
                CellClickRefresh();
            }
            if (dr == DialogResult.Cancel)
            {
                this.Show();
            }
        }
예제 #2
0
 //第一个选项卡中“修改用户信息”的按钮点击
 private void button4_Click(object sender, EventArgs e)
 {
     ModifyInfoByAdmin miba = new ModifyInfoByAdmin(dataGridView1.CurrentRow.Cells["用户名"].Value.ToString());
     DialogResult dr = miba.ShowDialog();
     if (dr == DialogResult.OK)
     {
         dgvGetInfo();
         CellClickRefresh();
     }
     if (dr == DialogResult.Cancel)
     {
         this.Show();
     }
 }