protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Hgh_Scr); myConnectionClass = new MyConnection(); myList = myConnectionClass.ViewAll(); Button btn_Home = FindViewById <Button> (Resource.Id.btn_Home); btn_Home.Click += btn_Home_Click; // Display the player names and high scores ListView Lv_HighScore = FindViewById <ListView>(Resource.Id.Lv_HighScore); Lv_HighScore.Adapter = new MyAdpater(this, myList); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Del_Rec_Layout); MyConnection myConnectionClass = new MyConnection(); List_All = myConnectionClass.ViewAll(); btn_Home_Page = FindViewById <Button>(Resource.Id.btn_Home_Page); btn_Home_Page.Click += btn_Home_Page_Click; spinner_select = FindViewById <Spinner>(Resource.Id.spinner_select); Hangman_3.Resources.MyAdpater da = new Resources.MyAdpater(this, List_All); spinner_select.Adapter = da; spinner_select.ItemSelected += new EventHandler <AdapterView.ItemSelectedEventArgs>(spinner_select_ItemSelected); btn_Delete = FindViewById <Button>(Resource.Id.btn_Delete); btn_Delete.Click += btn_Delete_Click; btn_Delete.Enabled = false; }