예제 #1
0
        private void SubmitButton_Click(object sender, EventArgs e)
        {
            string userName = this.UserNameTextBox.Text;

            DatabaseServices.update(Controller.Level, userName, Controller.score);
            this.Close();
        }
예제 #2
0
        private void ClearButton_Click(object sender, EventArgs e)
        {
            int currentLevel = level[(string)this.Level.SelectedItem];

            DatabaseServices.clear(currentLevel);
        }
예제 #3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            string levelKey = (string)this.Level.Items[this.Level.SelectedIndex];

            this.LeaderBoardData.DataSource = DatabaseServices.getData(LeaderBoard.level[levelKey]);
        }