Example #1
0
        private void compareTeam(int team1, int team2, model.LeagueTable team1Name, model.LeagueTable team2Name)
        {
            if (team1 > team2)
            {
                team1Name.score += 3;
                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.win++;
                team2Name.loss++;

                createTable();
            }
            else if (team1 == team2)
            {
                team1Name.score++;
                team2Name.score++;

                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.onTerms++;
                team2Name.onTerms++;

                createTable();
            }
            else
            {
                team2Name.score += 3;

                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.loss++;
                team2Name.win++;

                createTable();
            }
            denemeLbl.Text  = team1Name.name;
            denemeLbl1.Text = team1Name.win.ToString();
            denemeLbl2.Text = team1Name.onTerms.ToString();
            denemeLbl3.Text = team1Name.loss.ToString();
        }
Example #2
0
        private void compareTeam(int team1, int team2, model.LeagueTable team1Name, model.LeagueTable team2Name)
        {
            if (team1 > team2)
            {
                team1Name.score += 3;
                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.win++;
                team2Name.loss++;

                createTable();
            }
            else if (team1 == team2)
            {
                team1Name.score++;
                team2Name.score++;

                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.onTerms++;
                team2Name.onTerms++;

                createTable();
            }
            else
            {
                team2Name.score += 3;

                team1Name.playedMatch++;
                team2Name.playedMatch++;

                team1Name.loss++;
                team2Name.win++;

                createTable();
            }
        }