예제 #1
0
        public FormLeaderBoard(LeaderBoard leaderBoardE, Setting settingE)
        {
            InitializeComponent();
            leaderBoard        = leaderBoardE;
            setting            = settingE;
            lbname.BackColor   = Color.Black;
            lbscore.BackColor  = Color.Black;
            btadd.BackColor    = Color.Green;
            pbeasy.BackColor   = Color.Orange;
            lblEasy.ForeColor  = Color.Orange;
            pbhard.BackColor   = Color.Transparent;
            pbmedium.BackColor = Color.Transparent;
            lblscore.Text      = this.leaderBoard.getScore(setting.current[1], setting.current[2]).ToString();


            NamesAndScores lists = DBManagement.getSinglePlayerScores(1);

            easyBoardNameRefs = lists.names;
            easyBoardScore    = lists.scores;

            lists = DBManagement.getSinglePlayerScores(2);
            mediumBoardNameRefs = lists.names;
            mediumBoardScore    = lists.scores;

            lists             = DBManagement.getSinglePlayerScores(3);
            hardBoardNameRefs = lists.names;
            hardBoardScore    = lists.scores;

            this.addTolist(easyBoardNameRefs, easyBoardScore);
        }
예제 #2
0
        public FormLeaderBoard(LeaderBoard leaderBoardE,Setting settingE)
        {
            InitializeComponent();
            leaderBoard = leaderBoardE;
            setting = settingE;
            lbname.BackColor = Color.Black;
            lbscore.BackColor = Color.Black;
            btadd.BackColor = Color.Green;
            pbeasy.BackColor = Color.Orange;
            lblEasy.ForeColor = Color.Orange;
            pbhard.BackColor = Color.Transparent;
            pbmedium.BackColor = Color.Transparent;
            lblscore.Text = this.leaderBoard.getScore(setting.current[1], setting.current[2]).ToString();

            NamesAndScores lists = DBManagement.getSinglePlayerScores(1);
            easyBoardNameRefs = lists.names;
            easyBoardScore = lists.scores;

            lists = DBManagement.getSinglePlayerScores(2);
            mediumBoardNameRefs = lists.names;
            mediumBoardScore = lists.scores;

            lists = DBManagement.getSinglePlayerScores(3);
            hardBoardNameRefs = lists.names;
            hardBoardScore = lists.scores;

            this.addTolist(easyBoardNameRefs, easyBoardScore);
        }