protected override void OnNavigatedTo(NavigationEventArgs e) { // load data to the list LnaguageClass.AutherList(); titileAuther.Text = LnaguageClass.AuthorNmae(); ListAuther65.ItemsSource = null; ListAuther65.ItemsSource = LnaguageClass.AutherListInfo; //LnaguageClass.AutherList(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Recities); //set timer LnaguageClass recitesn = new LnaguageClass(); tableItems = recitesn.AutherList(); ListView listView = FindViewById <ListView>(Resource.Id.listView1); listView.Adapter = new HomeScreenAdapter(this, tableItems); listView.ItemClick += OnListItemClick; // to be defined }