private void blanquear() { var BL = new clienteBL(); var BE = new tb_cliente(); try { txtcodigo.Text = BL.GetNextCod(VariablesPublicas.EmpresaID.ToString(), BE); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } txtmnruc.Text = string.Empty; rbjuridica.Checked = true; chkretencion.Checked = false; txtrazonsocial.Text = string.Empty; txtapepat.Text = string.Empty; txtapemat.Text = string.Empty; txtnombres.Text = string.Empty; txtdireccion.Text = string.Empty; txtContacto.Text = string.Empty; txtemail.Text = string.Empty; txtweb.Text = string.Empty; txttelefono1.Text = string.Empty; txttelefono2.Text = string.Empty; txttelefono3.Text = string.Empty; txtctadetrac.Text = string.Empty; txtpaisid.Text = string.Empty; txtpaisname.Text = string.Empty; lblDireccion.Text = string.Empty; rbactivo.Checked = false; rbbaja.Checked = false; rbanulado.Checked = false; txtCondicion.Text = string.Empty; txtcoddetalle.Text = string.Empty; txtRucAnexo.Text = string.Empty; txtnomdetalle.Text = string.Empty; txtcanalvtaid.Text = string.Empty; txtcanalvtaname.Text = string.Empty; txtreplegaldni.Text = string.Empty; txtreplegalname.Text = string.Empty; if (TablaAnexos != null) { TablaAnexos.AcceptChanges(); if (TablaAnexos.Rows.Count > 0) { for (vmncont = 0; vmncont < TablaAnexos.Rows.Count; vmncont++) { TablaAnexos.Rows[vmncont].Delete(); } TablaAnexos.AcceptChanges(); } } txtCodigob.Text = string.Empty; txtRucb.Text = string.Empty; txtCtactenameb.Text = string.Empty; if (TablaBancos != null) { TablaBancos.AcceptChanges(); if (TablaBancos.Rows.Count > 0) { for (vmncont = 0; vmncont < TablaBancos.Rows.Count; vmncont++) { TablaBancos.Rows[vmncont].Delete(); } TablaBancos.AcceptChanges(); } } }