コード例 #1
0
ファイル: Gametime.cs プロジェクト: SigmaLambda/Live1X2
        //Misc methods
        //Skriver ut lag, mål, och tecken
        private void populateGameTextboxes(GameInfo chosenGame)
        {
            bool one = checkBox1.Checked;
            bool two = checkBox2.Checked;

            TextBox[] array = { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6, textBox7, textBox8, textBox9, textBox10, textBox11, textBox12, textBox13 };
            for( int j = 0 ; j < 13 ; j++ )
            {
                string tempstring = chosenGame.homeTeam[j];
                tempstring += "      \t- ";
                tempstring += chosenGame.awayTeam[j];
                tempstring += "      \t";
                tempstring += chosenGame.homeGoals[j];
                tempstring += " - ";
                tempstring += chosenGame.awayGoals[j];
                tempstring += "\t";
                tempstring += chosenGame.gameSign[j];
                array[j].Text = tempstring;

            }
                        
        }
コード例 #2
0
ファイル: Rows.cs プロジェクト: SigmaLambda/Live1X2
        //Rätta rader
        public void correctRows(GameInfo game)
        {
            
            int result;
            int counter = 0;
            int match = 0;
            
            //loopa igenom och jämför
            for(int rad = 1; rad <= this.totalRows; rad++){       //Loopa genom alla rader
                for (match = 0; match < 13; match++ ){            //Loopa genom alla matcher (kolumner)
                                        
                    string s1 = game.gameSign[match];
                    string s2 = this.rawRowes[rad, match];

                    result = String.Compare(game.gameSign[match], this.rawRowes[rad, match]);
                                        
                    if( result == 0 )
                    {
                        counter++;
                    }    

                }
                                    
                this.correctList[counter]++;
                counter = 0;

            }
        
        

        }