Пример #1
0
        private void UpdateScoreLabel()
        {
            DataBaseControl control = new DataBaseControl();
            Score           score   = new Score();

            score              = control.HaeHightscore();
            labelscore.Text    = "Player: " + score.Name;
            labelscore.Visible = true;
            scorelabel2.Text   = "Level: " + score.Lvl;
        }
Пример #2
0
        private void Menu_Load(object sender, EventArgs e)
        {
            UpdateScoreLabel();
            DataBaseControl dbc = new DataBaseControl();

            players = dbc.HaeHahmot();
            foreach (Playerstats player in players)
            {
                comboBox1.Items.Add(player.Name);
            }
        }