Ejemplo n.º 1
0
        private void btnAddMember_Click(object sender, EventArgs e)
        {
            var formMemberEdit = new FormMemberEdit("ADD", roomDTO.Id);

            formMemberEdit.ShowDialog();
            FormRoomInfor_Load(sender, e);
        }
Ejemplo n.º 2
0
        private void dgvMember_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int     row  = e.RowIndex;
            UserDTO user = new UserDTO();

            user.Id       = int.Parse(dgvMember.Rows[row].Cells["Id"].Value.ToString());
            user.FullName = dgvMember.Rows[row].Cells[3].Value.ToString();
            user.Address  = dgvMember.Rows[row].Cells[5].Value.ToString();
            user.Gender   = dgvMember.Rows[row].Cells[4].Value.ToString();
            user.Phone    = dgvMember.Rows[row].Cells[6].Value.ToString();
            var formMemberEdit = new FormMemberEdit("EDIT", user.Id, user.FullName,
                                                    user.Gender, user.Address, user.Phone);

            formMemberEdit.ShowDialog();
            FormRoomInfor_Load(sender, e);
        }