コード例 #1
0
        private void eliminarFamilia()
        {
            if (Id == 0)
            {
                mostrarError(error.getError("nosepuedeeliminar"));
                return;
            }
            FamiliaBL familiaBL = new FamiliaBL();

            familiaBL.BorrarFamilia(Id);
            string mensaje = error.getError("eliminado");

            mostrarError(mensaje);

            Limpiar(this.txtNombrePadre, this.txtPrimerApellidoPadre, this.txtSegundoApellidoPadre, this.txttelefonoPadre,
                    this.txtNombreMadre, this.txtPrimerApellidoMadre, this.txtSegundoApellidoMadre, this.txtTelefonoMadre,
                    this.txtDireccion, this.txtEstado);
        }