Exemplo n.º 1
0
        private void btn_Delete_Click(object sender, EventArgs e)
        {
            var cc = new Db_Connection();

            cc.DeletePlayer(HangmanGame.Id);
            List_All = cc.ViewAll();


            var da = new Resources.DataAdapter(this, List_All);

            spinner_select.Adapter = da;
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.View_High_Scores);

            myConnectionClass = new Db_Connection();
            myList            = myConnectionClass.ViewAll();

            Button btn_Home = FindViewById <Button>
                                  (Resource.Id.btn_Home);

            btn_Home.Click += btn_Home_Click;

            // Name with High Score
            ListView Lv_HighScore = FindViewById <ListView>(Resource.Id.Lv_HighScore);

            Lv_HighScore.Adapter = new DataAdapter(this, myList);
        }
Exemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Delete_Record);
            Db_Connection myConnectionClass = new Db_Connection();

            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.Resources.DataAdapter da = new Resources.DataAdapter(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;
        }