Esempio n. 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HighScores);

            myConnectionClass = new ConnectionClass();
            myList            = myConnectionClass.ViewAll();
            Button btnHighScoresBack = FindViewById <Button>
                                           (Resource.Id.btnHighScoresBack);

            btnHighScoresBack.Click += btnHighScoresBack_Click;

            // Display the player names and high scores
            ListView HighScoresListView = FindViewById <ListView>(Resource.Id.HighScoresListView);

            HighScoresListView.Adapter = new DataAdapter(this, myList);
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.EditDB);
            ConnectionClass myConnectionClass = new ConnectionClass();

            myList = myConnectionClass.ViewAll();

            btnEditDBMainMenu        = FindViewById <Button>(Resource.Id.btnEditDBMainMenu);
            btnEditDBMainMenu.Click += btnEditDBMainMenu_Click;
            spinnerEditDB            = FindViewById <Spinner>(Resource.Id.spinnereditDB);
            Hangman.Resources.DataAdapter da = new Resources.DataAdapter(this, myList);

            spinnerEditDB.Adapter = da;

            spinnerEditDB.ItemSelected += new EventHandler <AdapterView.ItemSelectedEventArgs>(spinnerEditDB_ItemSelected);

            btnDeleteEntry         = FindViewById <Button>(Resource.Id.btnDeleteEntry);
            btnDeleteEntry.Click  += btnDeleteEntry_Click;
            btnDeleteEntry.Enabled = false;
        }