30.07.2013 Views

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

Visual Basic.NET How to Program (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 21 ASP .<strong>NET</strong> and Web Services 1063<br />

267<br />

268 ' push<br />

269 If winner = GameStatus.PUSH Then<br />

270 pbStatus.Image = _<br />

271 Image.FromFile("blackjack_images\\tie.png")<br />

272<br />

273 ' player loses<br />

274 ElseIf winner = GameStatus.LOSE Then<br />

275 pbStatus.Image = _<br />

276 Image.FromFile("blackjack_images\\lose.png")<br />

277<br />

278 ' player has blackjack<br />

279 ElseIf winner = GameStatus.BLACKJACK Then<br />

280 pbStatus.Image = _<br />

281 Image.FromFile("blackjack_images\\blackjack.png")<br />

282<br />

283 ' player wins<br />

284 Else<br />

285 pbStatus.Image = _<br />

286 Image.FromFile("blackjack_images\\win.png")<br />

287 End If<br />

288<br />

289 cmdStay.Enabled = False<br />

290 cmdHit.Enabled = False<br />

291 cmdDeal.Enabled = True<br />

292<br />

293 End Sub ' GameOver<br />

294<br />

295 End Class ' Blackjack<br />

Fig. 21.15 Blackjack game that uses the Blackjack Web service (part 7 of 9).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!