Exemplo n.º 1
0
        private void dgvBarangay_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvBarangay.Columns[e.ColumnIndex].HeaderText == "Edit")
            {
                OnEdit = true;
                BrgyID = int.Parse(dgvBarangay.CurrentRow.Cells[2].Value.ToString());

                frmAddBarangay fad = new frmAddBarangay();
                fad.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void btnCreateBarangay_Click(object sender, EventArgs e)
        {
            frmAddBarangay fab = new frmAddBarangay();

            fab.ShowDialog();
        }