private void btnSua_Click(object sender, EventArgs e)
        {
            this.Close();
            FormSuaCuTru form = new FormSuaCuTru(CuTru);

            form.Show();
        }
Example #2
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            // Lấy ra 1 Cư Trú đầu tiên trong danh sách
            var selectedRow   = dgvCuTru.SelectedRows[0];
            var selectedCuTru = (CuTruDTO)selectedRow.DataBoundItem;

            FormSuaCuTru form = new FormSuaCuTru(selectedCuTru);

            form.Show();
        }
        private void btnSua_Click(object sender, EventArgs e)
        {
            FormSuaCuTru form = new FormSuaCuTru();

            form.Show();
        }