Changeset 2782 for 2012/23/JimB/Zong/Zong/Zong/Zong.cs
- Timestamp:
- 2012-06-05 08:47:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2012/23/JimB/Zong/Zong/Zong/Zong.cs
r2780 r2782 85 85 pelaajan2Pisteet.Value += 1; 86 86 } 87 Voitto(); 87 88 } 88 89 … … 160 161 return laskuri; 161 162 } 163 void Voitto() 164 { 165 Label Voitto1 = new Label(); 166 Voitto1.TextColor = Color.DarkCyan; 167 if (pelaajan1Pisteet.Value == 10) ; 168 { 169 Voitto1.Text = "Pelaaja 1 voittaa!"; 170 Add(Voitto1); 171 } 172 if (pelaajan2Pisteet.Value == 10) ; 173 { 174 Voitto1.Text = "Pelaaja 2 voittaa!"; 175 Add(Voitto1); 176 } 177 } 162 178 }
Note: See TracChangeset
for help on using the changeset viewer.