Ejemplo n.º 1
0
 private void BtModify_Click(object sender, EventArgs e)
 {
     if (dgvAccountData.SelectedCells.Count != 0)
     {
         int            id             = Convert.ToInt32(dgvAccountData.CurrentRow.Cells[0].Value);
         string         name           = dgvAccountData.CurrentRow.Cells[1].Value.ToString();
         string         pwd            = dgvAccountData.CurrentRow.Cells[2].Value.ToString();
         string         permission     = dgvAccountData.CurrentRow.Cells[3].Value.ToString();
         FormAddAccount formAddAccount = new FormAddAccount(this, id, name, pwd, permission);
         formAddAccount.Show();
     }
     else
     {
         MessageBox.Show("请选择要修改的账户");
     }
 }
Ejemplo n.º 2
0
        private void TSMIAddAccount_Click(object sender, EventArgs e)
        {
            Form formAddAccount = new FormAddAccount(this.formAccountMgr);

            formAddAccount.Show();
        }
Ejemplo n.º 3
0
        private void BtAdd_Click(object sender, EventArgs e)
        {
            FormAddAccount formAddAccount = new FormAddAccount(this);

            formAddAccount.Show();
        }