private void listar() { objContacto = new ClsContacto(); objContacto.opc = 1; objContactoMgr = new ClsContactoMgr(objContacto); Dtt = new DataTable(); Dtt = objContactoMgr.Listar(); if (Dtt.Rows.Count > 0) { dtregistros.DataSource = Dtt; } }
private void Listar() { objContacto = new ClsContacto(); //Completo la instancia objContacto.opc = 1; //Setter objContactoMgr = new ClsContactoMgr(objContacto); //Completo la instancia Dtt = new DataTable(); //Completo la instancia Dtt = objContactoMgr.Listar(); if (Dtt.Rows.Count > 0) { dtregistros.DataSource = Dtt; } }