コード例 #1
0
 void getFlora()
 {
     try
     {
         Controllers.FloraControllers obFloraControllers = new Controllers.FloraControllers();
         rpFlora.DataSource = obFloraControllers.getFlora();
         rpFlora.DataBind();
     }
     catch (Exception ew)
     {
         throw ew;
     }
 }
コード例 #2
0
        public void getFlora()
        {
            try
            {
                Controllers.FloraControllers  obFloraControllers = new Controllers.FloraControllers();
                List <logica.Models.clsFlora> ltsclsFlora        = obFloraControllers.getFlora();

                if (ltsclsFlora.Count > 0)
                {
                    gvwDatos.DataSource = ltsclsFlora;
                }
                else
                {
                    gvwDatos.DataSource = null;
                }

                gvwDatos.DataBind();
            }catch (Exception ew)
            {
                throw ew;
            }
        }