Exemple #1
0
 protected void BindByDataRow(DataRow dr, Destinatario o)
 {
     try
     {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id        = entero;
         entero      = 0;
         o.Destino   = dr["destino"].ToString();
         o.Direccion = dr["direccion"].ToString();
         if (dr["IsActive"] != DBNull.Value)
         {
             bool.TryParse(dr["IsActive"].ToString(), out logica);
             o.IsActive = logica;
             logica     = false;
         }
     }
     catch
     {
         throw;
     }
 }
Exemple #2
0
 public DestinatarioMng()
 {
     this._oDestinatario = new Destinatario();
     this._lst           = new List <Destinatario>();
 }