private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (SelectedId > 0)
     {
         var customer = bo.GetById(SelectedId);
         customer.Name           = txtName.Text;
         customer.Surname        = txtSurname.Text;
         customer.Gender         = cmbGender.Text;
         customer.Phone          = mskPhone.Text;
         customer.Email          = txtEmail.Text;
         customer.IdentityNumber = Convert.ToInt64(txtIdentityNumber.Text);
         customer.RoomNumber     = Convert.ToInt32(txtRoomNumber.Text);
         customer.Pay            = Convert.ToDecimal(txtPay.Text);
         customer.EntryDate      = dtpEntryDate.Value;
         customer.ReleaseDate    = dtpReleaseDate.Value;
         bo.Update(customer);
         RefreshCustomers();
     }
     dgvViewSetting(dataGridView1);
 }