private void btnAddAcc_Click(object sender, EventArgs e) { AddAccountForm addAccountForm = new AddAccountForm(); if (addAccountForm.ShowDialog() == DialogResult.OK) { loadDataGridViewAccount(); } }
private void btnViewAcc_Click(object sender, EventArgs e) { // index row đang được chọn int rowindex = dataGridViewAccount.CurrentCell.RowIndex; string id = dataGridViewAccount.Rows[rowindex].Cells[0].Value.ToString(); AddAccountForm editAccountForm = new AddAccountForm(id); if (editAccountForm.ShowDialog() == DialogResult.OK) { loadDataGridViewAccount(); } }
private void mitemAccDetail_Click(object sender, EventArgs e) { AddAccountForm addAccountForm = new AddAccountForm(currentUserID, false); addAccountForm.ShowDialog(); }