protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Tabla); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); registroDB = new RegistroRepository(dbPath); FindViewById <Button>(Resource.Id.homeButton).Click += OnFinishClick; FindViewById <Button>(Resource.Id.consultarButton).Click += OnConsultarClick; documentEditText = FindViewById <EditText>(Resource.Id.documentoEditText); resultListView = FindViewById <ListView>(Resource.Id.resultListView); documentoTextView = FindViewById <TextView>(Resource.Id.documentoTextView); nombreTextView = FindViewById <TextView>(Resource.Id.nombreTextView); sexoTextView = FindViewById <TextView>(Resource.Id.sexoTextView); estaturaTexView = FindViewById <TextView>(Resource.Id.estaturaTextView); longitudTextView = FindViewById <TextView>(Resource.Id.brazadaTextView); List <Nadador> nadadores = registroDB.GetAllNadadores(); List <Registro> registros = registroDB.GetAllRegistros(); //var items = new List<String>(); //foreach(var listing in nadadores){ // items.Add(listing.documentId + " / " + listing.nombre + " / " + listing.sexo + " / " + listing.estatura + " / " + listing.longitudBrazo); //} //var adapter =new ArrayAdapter<String>(this, Android.Resource.Layout.SimpleListItem1, items); //resultListView.Adapter = adapter; }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Tabla); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); registroDB = new RegistroRepository(dbPath); FindViewById <Button>(Resource.Id.homeButton).Click += OnFinishClick; FindViewById <Button>(Resource.Id.consultarButton).Click += OnConsultarClick; documentEditText = FindViewById <EditText>(Resource.Id.documentoEditText); //resultListView = FindViewById<ListView>(Resource.Id.resultListView); sfDataGrid = FindViewById <SfDataGrid>(Resource.Id.resultDataGrid); documentoTextView = FindViewById <TextView>(Resource.Id.documentoTextView); nombreTextView = FindViewById <TextView>(Resource.Id.nombreTextView); sexoTextView = FindViewById <TextView>(Resource.Id.sexoTextView); estaturaTexView = FindViewById <TextView>(Resource.Id.estaturaTextView); longitudTextView = FindViewById <TextView>(Resource.Id.brazadaTextView); List <Nadador> nadadores = registroDB.GetAllNadadores(); List <Registro> registros = registroDB.GetAllRegistros(); }