예제 #1
0
        private void btnDeleteEntry_Click(object sender, EventArgs e)
        {
            var cc = new DBConnection();

            cc.DeletePlayer(HomeScreen.Id);
            myList = cc.ViewAll();


            var da = new Resources.DBDA(this, myList);

            spinnerEditDB.Adapter = da;
        }
예제 #2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            //Sets up the DB connection
            myConnection = new DBConnection();
            //Runs the delete player method from the DBConnection class using the ID number from the Game class
            myConnection.DeletePlayer(Game.Id);
            myList = myConnection.ViewAll();
            var da = new DataAdapter(this, myList);

            spnEditDB.Adapter = da;
            Toast.MakeText(this, "Succesfully deleted", ToastLength.Long).Show();
        }