Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
        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;
            }
        }