示例#1
0
        public override bool getDatos(int id)
        {
            clear();
            bool exito = false;

            try
            {
                dsGimnasioTableAdapters.entradaTableAdapter ta = new dsGimnasioTableAdapters.entradaTableAdapter();
                dsGimnasio.entradaDataTable dt = ta.GetDataById(id);

                if (dt.Rows.Count > 0)
                {
                    datos = (dsGimnasio.entradaRow)dt.Rows[0];
                    exito = true;
                }
            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return(exito);
        }
        public override bool getDatos(int id)
        {
            clear();
            bool exito = false;
            try
            {
                dsGimnasioTableAdapters.entradaTableAdapter ta = new dsGimnasioTableAdapters.entradaTableAdapter();
                dsGimnasio.entradaDataTable dt = ta.GetDataById(id);

                if (dt.Rows.Count > 0)
                {
                    datos = (dsGimnasio.entradaRow)dt.Rows[0];
                    exito = true;
                }


            }
            catch (Exception ex)
            {
                error.Add(ex.Message);
            }

            return exito;
        }