예제 #1
0
        private void UpdateScreen()
        {
            AccessDatabase db = new AccessDatabase();

            listPlayers.ItemsSource = db.SelectAllPlayers();
            list = db.SelectAllPlayers();
            lblCountPlayers.Text = list.Count.ToString();
        }
        public SelectPlayerPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false); // Hide title bar

            AccessDatabase db = new AccessDatabase();

            listPlayers.ItemsSource = db.SelectAllPlayers();
            list = db.SelectAllPlayers();
            lblCountPlayers.Text = list.Count.ToString();
        }