ssd major portfolio

90
0 n Kinross Wolaroi School Software Design Development YR 12 2016 MAJOR SDD PROJECT Cameron Rasmussen

Upload: cameron-rasmussen

Post on 23-Jan-2018

118 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SSD Major Portfolio

0

n

Kinross Wolaroi School

Software Design Development

YR 12 2016 MAJOR SDD

PROJECT Cameron Rasmussen

Page 2: SSD Major Portfolio

1

Contents Part 1- Defining and Understanding the Problem 2

Problem Statement 2

Overview of Software and Hardware 2

Discussion of Development Approach 2

Part 2- Planning and Designing the Solution 3

Gnatt Charts 3

System Documentation Overview and Justification 6

Design Tools 6

IPO Chart 6

Context Diagram 8

User Interface Designs 9

Storyboard 16

Data Flow Diagrams 17

Data Dictionaries 18

Structure Chart 19

System Flowchart 19

Part 3- Implementing the Solution 20

Algorithms 20

Source Code 27

User Interface Development 79

User Manual 87

Part 4- Testing and Maintaining the solution 87

Test Plan and Report 87

Maintenance Overview 88

Part 5- Social and Ethical Issues 88

Social and Ethical Issues Overview 88

Justification of Social and Ethical Issues in relation to Major Project 89

Documentation and Project work 89

Learning Journal 89

Project Work, Collaboration, Communication, Organisation and Effort 89

Page 3: SSD Major Portfolio

2

Part 1- Defining and Understanding the Problem

Problem Statement

At first thinking, I wanted to create a media player. But when I was watching the previous cricket test

matches Australia vs. New Zealand, I decided that I wanted to make a program a digital scorecard,

from new users to experienced users of scoring. My hypothetical client has asked me to design and

produce a functional program to take score of the cricket used from scoring books and other cricket

scoring programs to be used to score any type of format of game, from 20/20 to 1 day to test

match. The program will require for me to create a part of it where players can be created. What I

might find challenging is that the score must be placed as a total score, bowling score and batting

score which I may find difficult. My program will require different symbols for certain areas of the

program.

Overview of Software and Hardware

Hardware used will be the computer to be used in Visual Basic, with a computers at school and

computer at home, I will be able to work and back the files up on each computer if there's a

corrupted program, I am able to go back and used the last saved file to continue on from there.

CASE tools towards my project will be a driving factor. The data dictionary will help what is the type

and what it does, the system modelling will assist in the organisation of the program and where will

each particular part will be placed and what will each function do. The source code must be correct

with no errors by the end of the project with each sub in the program to be explained in what the

particular area does. Documenting the project through screenshots is one method I will be using

and also documenting my progress through Google Blogger blogging every week about my

progress and achievements of the week and what I'm having difficulties I may have throughout the

project. When tracking the errors, I will debug, using break point to see what the particular code is

doing at the runtime. Testing data will assist in what is being tested in the scorecard which will help

me to what section is doing what.

Discussion of Development Approach

Structured programming is a programming paradigm aimed at improving the clarity, quality, and

development time of a computer program by making extensive use of subroutines, block structures

and for and while loops. A third area sometimes targeted for improvement is organizational efficacy,

which involves the process of setting organizational goals and objectives. Performance improvement

at the operational or individual employee level usually involves processes such as statistical quality

control. Also called a decision, one of the three basic logic structures in computer programming. The

other two logic structures are sequence and loop. In a selection structure, a question is asked, and

depending on the answer, the program takes one of two courses of action, after which the program

moves on to the next event. As the strucured appraoch has been used to my project., my project has

gone back and forth, starting obviously at planning to design then implementing, maintaining. I had

to go back alot to rechange my diagrams and tables as some stuff in the project. The project takes

back and forth forcing you to make those key changes. This is only a prototype as I would like to do

this with plenty more time but a deadline is required. Compared to other projects mine is a cheap

budget compared to projects in large companies developing games, software etc. The larger the

project the more people working in the project. The prototype approach would be best suited as

another approach as it quick and not alot of documenting is required for the developer.

Page 4: SSD Major Portfolio

3

Part 2- Planning and Designing the Solution

Gnatt Charts

Gnatt Chart Stage 1

Page 5: SSD Major Portfolio

4

Gnatt Chart Stage 2

Page 6: SSD Major Portfolio

5

Gnatt Chart Stage 3

Page 7: SSD Major Portfolio

6

System Documentation Overview and Justification

The importance of having system documentation is to have a relative idea of how the program will

be set out. The design tools I have used for the project are the following: IPO Chart, Context

Diagram, User Interface designs, Data flow Diagram, Storyboards, Data Dictionairies, structure chart

and systems flowchart. These tools are important as these are the tools that keep you on track of the

project and always can be reffered to by seeing what must be what. For example in the IPO chart im

able to see what should be doing what. A button is clicked that would maybe load a form and the

output that its loads the form. This is on of the reasons why design tools are vital.

Design Tools

IPO Chart

Input Process Output

frmSplashScreen Load to Login form Loads login Form

Logging in Username and login details

Create new login details

If details not entered

Loads Main Menu form

Login details saved to fail

"Please create user and

password"

Btnexit Exiting the program Program closed

btnHelp Loads Help form Help form loads

Btncreategame Load creategame form Create game form Loaded

btnplayers Loads players form Players Form loaded

btnviewstats Loads view stats form View Stats Loaded

txtsearch Search "" team name

Search text box "" not typed ion

Displays teams with that name

"Please type in a teams game"

btnsearch Click btn search searching

criteria

Results displayed

btnviwall All results being displayed All gameresults displayed in

lstgames

Cmdsortdate Sorts date in ascending or

descending order

Date sorted in ascending or

descneding order

Btnback Main menu form loading

closing view games form

Main menu form open, view

games form closed

Ascending Click ascending putting results Results displayed in ascending

Page 8: SSD Major Portfolio

7

in ascending order order

Descending Click descneding putting results

in descneding order

Results displayed in ascending

order

lstgames Results displayed in listbox Results displayed in listbox

Btnsubmit Submits player or game info to

file

Game or player info saved to

file

cmbtype Displays different player

characteristic

Loads palyer characteristic

cmbadt Displays domestic t20 sides Domestic t20 sides displayed

cmbipl Displays IPL teams IPL teams displayed

cmbit20 Displays International T20 sides International T20 sides

displayed

cmbiodi Displays International ODI sides International ODI sides

displayed

cmbtest Displays International Test sides International TEST sides

displayed

cmbgametype Select game type Game type selected

dtpdate Select date Date Selected

Cmbteams Select teams Teams selected

Cmbbestbatters Choose best batters Best batters chosen

cmbbestbowlers Choose best bowlers Best bowlers chosen

Page 9: SSD Major Portfolio

8

Context Diagram

Page 10: SSD Major Portfolio

9

User Interface Designs

Splash Screen

Page 11: SSD Major Portfolio

10

Login

Page 12: SSD Major Portfolio

11

Help

Page 13: SSD Major Portfolio

12

Main menu

Page 14: SSD Major Portfolio

13

Create Player

Page 15: SSD Major Portfolio

14

Create Game

Page 16: SSD Major Portfolio

15

View Results

Page 17: SSD Major Portfolio

16

Storyboard

Page 18: SSD Major Portfolio

17

Data Flow Diagrams

Page 19: SSD Major Portfolio

18

Data Dictionaries

Data Item Data Type Format Description Example

Username String XXXNNN Given for user

deatails

Yallah

Password String XXXNNN Password for

extra security

purposes

Hommus

Date Floating Point yyyy-mm-dd 2016/09/09

Game Type String XXXNNN Type of format

played

T20

Team String XXXNNN Teams Selected

for game

Sydney Thunder,

Sydney Sixers

Best Batter String XXXNNN Best batter of

game

Michael Hussey

Best Bowler String XXXNNN Best bowler of

game

Jacques Kallis

Runs Integer 11111 Runs from best

batter

123

Bowling Figures Integer 22222 Best figures from

best bowler

3/20

Australian

Domestic team

String XXXNNN Team selected for

the player

Perath Scorchers

IPL Team String XXXNNN Team selected for

the player

Mumbai Indians

International T20

team

String XXXNNN Team selected for

the player

Australia T20

International ODI

team

String XXXNNN Team selected for

the player

Australia ODI

International

T20Test

String XXXNNN Team selected for

the player

Australia Test

USer deatils deatails Data written to

Login file when

new users login

Game Results Record Data written to

Page 20: SSD Major Portfolio

19

Game result file

when games are

created

Structure Chart

System Flowchart

Page 21: SSD Major Portfolio

20

Part 3- Implementing the Solution

Algorithms

Flowchart

Create Game

Page 22: SSD Major Portfolio

21

Create Player

Page 23: SSD Major Portfolio

22

Login

Page 24: SSD Major Portfolio

23

MainMenu

Search

Page 25: SSD Major Portfolio

24

SortDate

Page 26: SSD Major Portfolio

25

Splashscreen

ViewAll

Page 27: SSD Major Portfolio

26

Pseudocode

Search

Begin Linear Search

Let i = 1

Let Found It = false

Get Team NAme

WHILE FoundIt is false AND i <= number of names

IF Team(i) < > RequiredTeam THEN

i = i + 1

ELSE

Let FoundIt = true

ENDIF

ENDWHILE

IF FoundIt Not THEN

Display “Required Team Not found

SortDate

Begin SelectionSortDate

Let EndUnsorted = number of Dates in the array

WHILE EndUnsorted > 1

Let i = 1

Let Max = Date (i)

Let PosMax = i

WHILE i <= EndUnsorted

Increment i

IF Date (i) > Max THEN

Let Max = Date (i)

Let PosMax = i

Page 28: SSD Major Portfolio

27

ENDIF

ENDWHILE

Swap (Date (PosMax), Date (EndUnsorted))

Decrement EndUnsorted

ENDWHILE

END SelectionSortDate

Source Code

Module1

Imports System.IO Module Module1 Public Structure Login Dim ID As Integer Dim username As String Dim password As String End Structure Public filepath As String = Application.StartupPath Public arrlogin(0) As Login Public Sub LoadLoginFile()

Page 29: SSD Major Portfolio

28

'Dim oFile as System.IO.File Dim oRead As System.IO.StreamReader Dim LineIn As String Dim id As Integer = 0 Dim tmp oRead = File.OpenText(filepath & "\Login.txt") While oRead.Peek <> -1 LineIn = oRead.ReadLine() If Mid(LineIn, 1, 1) <> "" Then tmp = Split(LineIn, "|") ReDim Preserve arrlogin(UBound(arrlogin) + 1) arrlogin(CInt(tmp(0))).ID = tmp(0) arrlogin(tmp(0)).username = tmp(1) arrlogin(tmp(0)).password = tmp(2) End If End While oRead.Close() 'Msgbox("File Loaded") 'stub End Sub Public Sub SaveLoginfile() Dim sep As Char = "|" Dim writeline As String = "" For i = 0 To UBound(arrlogin) If arrlogin(i).username <> "" Then writeline &= arrlogin(i).ID & sep & arrlogin(i).username & sep & arrlogin(i).password & vbCrLf End If Next File.WriteAllText(filepath & "\Login.txt", writeline) End Sub Public Sub CreateLogin(ByVal username As String, ByVal password As String) 'add current login details to login array Dim NextID As Integer = FindNextLoginID() arrlogin(NextID).ID = NextID arrlogin(NextID).username = username arrlogin(NextID).password = password End Sub Private Function FindNextLoginID() ' sets id for next record + 1 ' sets id for next record + 1 Dim x As Integer = 0 For i = 0 To UBound(arrlogin) If arrlogin(i).ID > x Then x = arrlogin(i).ID End If Next FindNextLoginID = x + 1 End Function 'Mod data for booking Public Structure Players Dim ID As Integer Dim Name As String Dim Surname As String Dim Type As String Dim AustralianDomesticTeam As String Dim IPLTeam As String Dim InternationalT20Team As String Dim InternationalODITeam As String Dim InternationalTestTeam As String Dim BattingAverage As String Dim BowlingAverage As String End Structure Public arrPlayers(0) As Players

Page 30: SSD Major Portfolio

29

Public Sub LoadPlayersFile() 'Dim oFile as System.IO.File Dim oRead As System.IO.StreamReader Dim LineIn As String Dim id As Integer = 0 Dim tmp oRead = File.OpenText(filepath & "\Players.txt") While oRead.Peek <> -1 LineIn = oRead.ReadLine() If Mid(LineIn, 1, 1) <> "" Then tmp = Split(LineIn, "|") ReDim Preserve arrPlayers(UBound(arrPlayers) + 1) arrPlayers(CInt(tmp(0))).ID = tmp(0) arrPlayers(tmp(0)).Name = tmp(1) arrPlayers(tmp(0)).Surname = tmp(2) arrPlayers(tmp(0)).Type = tmp(3) arrPlayers(tmp(0)).AustralianDomesticTeam = tmp(4) arrPlayers(tmp(0)).IPLTeam = tmp(5) arrPlayers(tmp(0)).InternationalT20Team = tmp(6) arrPlayers(tmp(0)).InternationalODITeam = tmp(7) arrPlayers(tmp(0)).InternationalTestTeam = tmp(8) arrPlayers(tmp(0)).BattingAverage = tmp(9) arrPlayers(tmp(0)).BowlingAverage = tmp(10) End If End While oRead.Close() 'Msgbox("File Loaded") 'stub End Sub Public Sub SavePlayersfile() Dim sep As Char = "|" Dim writeline As String = "" For i = 0 To UBound(arrPlayers) If arrPlayers(i).Name <> "" Then writeline &= arrPlayers(i).ID & sep & arrPlayers(i).Name & sep & arrPlayers(i).Surname & sep & arrPlayers(i).Type & sep & arrPlayers(i).AustralianDomesticTeam & sep & arrPlayers(i).IPLTeam & sep & arrPlayers(i).InternationalT20Team & sep & arrPlayers(i).InternationalODITeam & sep & arrPlayers(i).InternationalTestTeam & sep & arrPlayers(i).BattingAverage & sep & arrPlayers(i).BowlingAverage & vbCrLf End If Next File.WriteAllText(filepath & "\Players.txt", writeline) End Sub Private Function FindNextPlayerID() ' sets id for next record + 1 ' sets id for next record + 1 Dim x As Integer = 0 For i = 0 To UBound(arrPlayers) If arrPlayers(i).ID > x Then x = arrPlayers(i).ID End If Next FindNextPlayerID = x + 1 End Function Public Sub CreatePlayer(ByVal Name As String, ByVal Surname As String, ByVal Type As String, ByVal AustralianDomesticTeam As String, ByVal IPLTeam As String, ByVal InternationalT20Team As String, ByVal InternationalODITeam As String, ByVal InternationalTestTeam As String, ByVal BattingAverage As String, ByVal BowlingAverage As String) 'add current Player details to Players array Dim NextID As Integer = FindNextPlayerID() arrPlayers(NextID).ID = NextID arrPlayers(NextID).Name = Name arrPlayers(NextID).Surname = Surname arrPlayers(NextID).Type = Type

Page 31: SSD Major Portfolio

30

arrPlayers(NextID).AustralianDomesticTeam = AustralianDomesticTeam arrPlayers(NextID).IPLTeam = IPLTeam arrPlayers(NextID).InternationalT20Team = InternationalT20Team arrPlayers(NextID).InternationalODITeam = InternationalODITeam arrPlayers(NextID).InternationalTestTeam = InternationalTestTeam arrPlayers(NextID).BattingAverage = BattingAverage arrPlayers(NextID).BowlingAverage = BowlingAverage MsgBox("Player created", MsgBoxStyle.Information) End Sub Private Function FindNextIDPlayers() 'sets id for next record + 1 Dim x As Integer = 0 For i = 0 To UBound(arrPlayers) If arrPlayers(i).ID > x Then x = arrPlayers(i).ID End If Next FindNextIDPlayers = x + 1 End Function Public Structure Game Dim ID As Integer Dim DateGame As String Dim Type As String Dim Team1 As String Dim Team2 As String Dim Team1innings As String Dim Bestbatting1 As String Dim BattingRuns1 As String Dim Bestbowling2 As String Dim BowlingFigures2 As String Dim Team2innings As String Dim Bestbatting2 As String Dim BattingRuns2 As String Dim Bestbowling1 As String Dim Bowlingfigures As String End Structure Public arrGames(0) As Game Public Sub LoadGamesFile() 'Dim oFile as System.IO.File Dim oRead As System.IO.StreamReader Dim LineIn As String Dim id As Integer = 0 Dim tmp ' oRead = File.OpenText(filepath & "\GameResult.txt") While oRead.Peek <> -1 LineIn = oRead.ReadLine() If Mid(LineIn, 1, 1) <> "" Then tmp = Split(LineIn, "|") ReDim Preserve arrGames(UBound(arrGames) + 1) arrGames(CInt(tmp(0))).ID = tmp(0) arrGames(CInt(tmp(0))).DateGame = tmp(1) arrGames(CInt(tmp(0))).Type = tmp(2) arrGames(CInt(tmp(0))).Team1 = tmp(3) arrGames(CInt(tmp(0))).Team2 = tmp(4) arrGames(CInt(tmp(0))).Team1innings = tmp(5) arrGames(CInt(tmp(0))).Bestbatting1 = tmp(6) arrGames(CInt(tmp(0))).BattingRuns1 = tmp(7) arrGames(CInt(tmp(0))).Bestbowling2 = tmp(8) arrGames(CInt(tmp(0))).BowlingFigures2 = tmp(9) arrGames(CInt(tmp(0))).Team2innings = tmp(10) arrGames(CInt(tmp(0))).Bestbatting2 = tmp(11) arrGames(CInt(tmp(0))).BattingRuns2 = tmp(12)

Page 32: SSD Major Portfolio

31

arrGames(CInt(tmp(0))).Bestbowling1 = tmp(13) arrGames(CInt(tmp(0))).Bowlingfigures = tmp(14) End If End While oRead.Close() 'Msgbox("File Loaded") 'stub End Sub Public Sub SaveGamesfile() Dim sep As Char = "|" Dim writeline As String = "" For i = 0 To UBound(arrGames) If arrGames(i).DateGame <> "" Then writeline &= arrGames(i).ID & sep & arrGames(i).DateGame & sep & arrGames(i).Type & sep & arrGames(i).Team1 & sep & arrGames(i).Team2 & sep & arrGames(i).Team1innings & sep & arrGames(i).Bestbatting1 & sep & arrGames(i).BattingRuns1 & sep & arrGames(i).Bestbowling2 & sep & arrGames(i).BowlingFigures2 & sep & arrGames(i).Team2innings & sep & arrGames(i).Bestbatting2 & sep & arrGames(i).BattingRuns2 & sep & arrGames(i).Bestbowling1 & sep & arrGames(i).BowlingFigures2 & vbCrLf End If Next File.WriteAllText(filepath & "\GameResult.txt", writeline) End Sub Private Function FindNextGameID() ' sets id for next record + 1 ' sets id for next record + 1 Dim x As Integer = 0 For i = 0 To UBound(arrGames) If arrGames(i).ID > x Then x = arrGames(i).ID End If Next FindNextGameID = x + 1 End Function Public Sub CreateGame(ByVal DateGame As Date, ByVal Type As String, ByVal Team1 As String, ByVal Team2 As String, ByVal Team1innings As String, ByVal Bestbatting1 As String, ByVal BattingRuns1 As String, ByVal Bestbowling2 As String, ByVal BowlingFigures2 As String, ByVal Team2innings As String, ByVal Bestbatting2 As String, ByVal BattingRuns2 As String, ByVal Bestbowling1 As String, Bowlingfigures As String) 'add current result details to gameresult array LoadGamesFile() Dim NextID As Integer = FindNextGameID() arrGames(NextID).ID = NextID arrGames(NextID).DateGame = Format("yyyy-MM-d") arrGames(NextID).Team1 = Team1 arrGames(NextID).Team2 = Team2 arrGames(NextID).Team1innings = Team1innings arrGames(NextID).Bestbatting1 = Bestbatting1 arrGames(NextID).BattingRuns1 = BattingRuns1 arrGames(NextID).Bestbowling2 = Bestbowling2 arrGames(NextID).BowlingFigures2 = BowlingFigures2 arrGames(NextID).Team2innings = Team2innings arrGames(NextID).Bestbatting2 = Bestbatting2 arrGames(NextID).BattingRuns2 = BattingRuns2 arrGames(NextID).Bestbowling1 = Bestbowling1 arrGames(NextID).Bowlingfigures = Bowlingfigures MsgBox("Game created", MsgBoxStyle.Information) End Sub End Module

frmSplashScreen

Page 33: SSD Major Portfolio

32

Public Class Splash Dim SecondCount As Integer = 0 Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick End Sub Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load SecondCount = 0 Me.Timer1.Interval = 1 * 700 Me.Timer1.Enabled = True End Sub Private Sub Time1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick SecondCount += 1 If SecondCount = 3 Then Me.Timer1.Enabled = False Login.Show() Me.Hide() End If End Sub End Class

frmLogin

Public Class Login Dim Uname As String Dim Pass As String Private Sub Login_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'Open logindata text file and read records into array LoadLoginFile() End Sub Private Sub btnlogin_Click(sender As System.Object, e As System.EventArgs) Handles btnlogin.Click 'Msgbox("go to login section") Dim searchUname As String Dim searchpassword As String Dim found As Boolean = False searchUname = txtuser.Text searchpassword = txtpass.Text If txtuser.Text = "" Then MsgBox("Please enter a username") Exit Sub Else For i = 0 To UBound(arrlogin) If arrlogin(i).username = searchUname And arrlogin(i).password = searchpassword Then found = True MsgBox("login successful") Main_Menu.Show() Me.Hide() End If Next End If If found = False Then

Page 34: SSD Major Portfolio

33

MsgBox("Login unsuccessful") txtuser.Text = "" txtpass.Text = "" Exit Sub End If End Sub Private Sub btnexit_Click(sender As System.Object, e As System.EventArgs) Handles btnexit.Click End End Sub Private Sub btnhelp_Click(sender As System.Object, e As System.EventArgs) Handles btnhelp.Click Help.Show() End Sub Private Sub btnok_Click(sender As System.Object, e As System.EventArgs) Handles btnok.Click If txtnewuser.Text = "" Then MsgBox("You must ensure a new username is entered") ElseIf txtnewpass.Text = txtnewpassconfirm.Text Then CreateLogin(txtnewuser.Text, txtnewpass.Text) SaveLoginfile() grpnewuser.Visible = False txtnewuser.Text = "" txtnewpass.Text = "" txtnewpassconfirm.Text = "" MsgBox("New User created", MsgBoxStyle.Information) Else MsgBox("Please ensure passwords match") txtnewpass.Text = "" txtnewpassconfirm.Text = "" grpnewuser.Visible = False End If End Sub End Class

frmMainMenu

Public Class Main_Menu Private Sub Main_Menu_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub Private Sub btnexit_Click(sender As System.Object, e As System.EventArgs) Handles btnexit.Click End End Sub Private Sub btnhelp_Click(sender As System.Object, e As System.EventArgs) Handles btnhelp.Click Help.Show() End Sub Private Sub btncreategame_Click(sender As System.Object, e As System.EventArgs) Handles btncreategame.Click Game.Show() Me.Hide() End Sub Private Sub btnplayers_Click(sender As System.Object, e As System.EventArgs) Handles btnplayers.Click CreatePlayers.Show() Me.Hide() End Sub Private Sub btnviewstats_Click(sender As System.Object, e As System.EventArgs) Handles btnviewstats.Click

Page 35: SSD Major Portfolio

34

ViewGames.Show() Me.Hide() End Sub End Class

frmCreatePlayers

Public Class CreatePlayers Dim GivenName As String Dim Surname As String Dim Type As String Dim AustralianDomesticTeam As String Dim IPLTeam As String Dim InternationalT20Team As String Dim InternationalODITeam As String Dim InternationalTestTeam As String Dim BattingAverage As String Dim BowlingAverage As String Private Sub CreatePlayers_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadPlayersFile() End Sub Private Sub btnsubmit_Click(sender As System.Object, e As System.EventArgs) Handles btnsubmit.Click CreatePlayer(txtsurname.Text, txtname.Text, cmbtype.Text, cmbadt.Text, cmbipl.Text, cmbit20.Text, cmbiodi.Text, cmbtest.Text, txtbattingaverage.Text, txtbowlingaverage.Text) SavePlayersfile() Main_Menu.Show() Me.Hide() End Sub Private Sub btnhelp_Click(sender As System.Object, e As System.EventArgs) Handles btnhelp.Click Help.Show() End Sub End Class

frmCreateGame

Public Class Game Private Sub Game_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load LoadGamesFile() cmbgametype.Items.Add("T20") cmbgametype.Items.Add("ODI") cmbgametype.Items.Add("Test") End Sub Private Sub btnsubmit_Click(sender As System.Object, e As System.EventArgs) Handles btnsubmit.Click CreateGame(dtpdate.Text, cmbgametype.Text, cmbteam1.Text, cmbteam2.Text, txtbattingtotal1.Text, cmbbestbatter1.Text, txtbestbatterruns1.Text, cmbbestbowler2.Text, txtbestbowlerfigure2.Text, txtbattingtotal2.Text, cmbbestbatter2.Text, txtbestbatterruns2.Text, cmbbestbowler.Text, txtbestbowlingfigure1.Text) SaveGamesfile() Main_Menu.Show() Me.Hide() End Sub Private Sub cmbgametype_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmbgametype.SelectedIndexChanged

Page 36: SSD Major Portfolio

35

Try If cmbgametype.SelectedIndex = 0 Then cmbteam1.Items.Clear() cmbteam1.Items.Add("Sydney Sixers") cmbteam1.Items.Add("Sydney Thunder") cmbteam1.Items.Add("Brisbane Heat") cmbteam1.Items.Add("Melbourne Stars") cmbteam1.Items.Add("Melbourne Renegades") cmbteam1.Items.Add("Perth Scorchers") cmbteam1.Items.Add("Adelaide Strikers") cmbteam1.Items.Add("Hobart Hurricanes") cmbteam1.Items.Add("Kolkata Knight Riders") cmbteam1.Items.Add("Mumbai Indians") cmbteam1.Items.Add("Sunrisers Hyperbad") cmbteam1.Items.Add("Dehli Daredevils") cmbteam1.Items.Add("Gujarat Lions") cmbteam1.Items.Add("Pune Supergiants") cmbteam1.Items.Add("Royal Challengers Bangalore") cmbteam1.Items.Add("Kings XI Punjab") cmbteam1.Items.Add("Australia T20") cmbteam1.Items.Add("South Africa T20") cmbteam1.Items.Add("Sri Lanka T20") cmbteam1.Items.Add("England T20") cmbteam1.Items.Add("Bangledesh T20") cmbteam1.Items.Add("New Zealand T20") cmbteam1.Items.Add("Pakistan T20") cmbteam1.Items.Add("Zimbabwe T20") cmbteam1.Items.Add("West Indies T20") cmbteam1.Items.Add("India T20") cmbteam2.Items.Clear() cmbteam2.Items.Add("Sydney Sixers") cmbteam2.Items.Add("Sydney Thunder") cmbteam2.Items.Add("Brisbane Heat") cmbteam2.Items.Add("Melbourne Stars") cmbteam2.Items.Add("Melbourne Renegades") cmbteam2.Items.Add("Perth Scorchers") cmbteam2.Items.Add("Adelaide Strikers") cmbteam2.Items.Add("Kolkata Knight Riders") cmbteam2.Items.Add("Mumbai Indians") cmbteam2.Items.Add("Sunrisers Hyperbad") cmbteam2.Items.Add("Dehli Daredevils") cmbteam2.Items.Add("Gujarat Lions") cmbteam2.Items.Add("Pune Supergiants") cmbteam2.Items.Add("Royal Challengers Bangalore") cmbteam2.Items.Add("Kings XI Punjab") cmbteam2.Items.Add("Australia T20") cmbteam2.Items.Add("South Africa T20") cmbteam2.Items.Add("Sri Lanka T20") cmbteam2.Items.Add("England T20") cmbteam2.Items.Add("Bangledesh T20") cmbteam2.Items.Add("New Zealand") cmbteam2.Items.Add("Pakistan T20") cmbteam2.Items.Add("Zimbabwe T20") cmbteam2.Items.Add("West Indies T20") cmbteam2.Items.Add("India T20") ElseIf cmbgametype.SelectedIndex = 1 Then cmbteam1.Items.Clear() cmbteam1.Items.Add("Australia ODI") cmbteam1.Items.Add("South Africa ODI") cmbteam1.Items.Add("Sri Lanka ODI") cmbteam1.Items.Add("England ODI") cmbteam1.Items.Add("Bangledesh ODI") cmbteam1.Items.Add("New Zealand ODI")

Page 37: SSD Major Portfolio

36

cmbteam1.Items.Add("Pakistan ODI") cmbteam1.Items.Add("Zimbabwe ODI") cmbteam1.Items.Add("West Indies ODI") cmbteam1.Items.Add("India ODI") cmbteam2.Items.Clear() cmbteam2.Items.Add("Australia ODI") cmbteam2.Items.Add("South Africa ODI") cmbteam2.Items.Add("Sri Lanka ODI") cmbteam2.Items.Add("England ODI") cmbteam2.Items.Add("Bangledesh ODI") cmbteam2.Items.Add("New Zealand ODI") cmbteam2.Items.Add("Pakistan ODI") cmbteam2.Items.Add("Zimbabwe ODI") cmbteam2.Items.Add("West Indies ODI") cmbteam2.Items.Add("India ODI") ElseIf cmbgametype.SelectedIndex = 2 Then cmbteam1.Items.Clear() cmbteam1.Items.Add("Australia Test") cmbteam1.Items.Add("South Africa Test") cmbteam1.Items.Add("Sri Lanka Test") cmbteam1.Items.Add("England Test") cmbteam1.Items.Add("Bangledesh Test") cmbteam1.Items.Add("New Zealand Test") cmbteam1.Items.Add("Pakistan Test") cmbteam1.Items.Add("Zimbabwe Test") cmbteam1.Items.Add("West Indies Test") cmbteam1.Items.Add("India Test") cmbteam2.Items.Clear() cmbteam2.Items.Add("Australia Test") cmbteam2.Items.Add("South Africa Test") cmbteam2.Items.Add("Sri Lanka Test") cmbteam2.Items.Add("England Test") cmbteam2.Items.Add("Bangledesh Test") cmbteam2.Items.Add("New Zealand Test") cmbteam2.Items.Add("Pakistan Test") cmbteam2.Items.Add("Zimbabwe Test") cmbteam2.Items.Add("West Indies Test") cmbteam2.Items.Add("India Test") End If Catch ex As Exception End Try End Sub Private Sub cmbteam1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cmbteam1.SelectedIndexChanged Try If cmbteam1.SelectedItem = "Sydney Sixers" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Moses Henriques") cmbbestbowler.Items.Add("Moses Henriques") cmbbestbatter1.Items.Add("Sean Abbott") cmbbestbowler.Items.Add("Sean Abbott") cmbbestbatter1.Items.Add("Doug Bollinger") cmbbestbowler.Items.Add("Doug Bollinger") cmbbestbatter1.Items.Add("Jackson Bird") cmbbestbowler.Items.Add("Jackson Bird")

Page 38: SSD Major Portfolio

37

cmbbestbatter1.Items.Add("Johan Botha") cmbbestbowler.Items.Add("Johan Botha") cmbbestbatter1.Items.Add("Ed Cowan") cmbbestbowler.Items.Add("Ed Cowan") cmbbestbatter1.Items.Add("Brad Haddin") cmbbestbowler.Items.Add("Brad Haddin") cmbbestbatter1.Items.Add("Michael Lumb") cmbbestbowler.Items.Add("Michael Lumb") cmbbestbatter1.Items.Add("Nic Maddinson") cmbbestbowler.Items.Add("Nic Maddinson") cmbbestbatter1.Items.Add("Jordan Silk") cmbbestbowler.Items.Add("Jordan Silk") cmbbestbatter1.Items.Add("Ryan Carters") cmbbestbowler.Items.Add("Ryan Carters") ElseIf cmbteam1.SelectedItem = "Sydney Thunder" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Michael Hussey") cmbbestbowler.Items.Add("Michael Hussey") cmbbestbowler.Items.Add("Usman Khawaja") cmbbestbatter1.Items.Add("Usman Khawaja") cmbbestbowler.Items.Add("Jacques Kallis") cmbbestbatter1.Items.Add("Jacques Kallis") cmbbestbowler.Items.Add("Shane Watson") cmbbestbatter1.Items.Add("Shane Watson") cmbbestbowler.Items.Add("Aiden Blizzard") cmbbestbatter1.Items.Add("Aiden Blizzard") cmbbestbatter1.Items.Add("Chris Hartley") cmbbestbowler.Items.Add("Chris Hartley") cmbbestbatter1.Items.Add("Chris Green") cmbbestbowler.Items.Add("Chris Green") cmbbestbatter1.Items.Add("Fawad Ahmed") cmbbestbowler.Items.Add("Fawad Ahmed") cmbbestbatter1.Items.Add("Clint McKay") cmbbestbowler.Items.Add("Clint Mckay") cmbbestbatter1.Items.Add("Ben Rorhrer") cmbbestbowler.Items.Add("Ben Rorhrer") cmbbestbatter1.Items.Add("Andre Russell") cmbbestbowler.Items.Add("Andre Russell") ElseIf cmbteam1.SelectedItem = "Brisbane Heat" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("James Pierson") cmbbestbowler.Items.Add("James Pierson") cmbbestbowler.Items.Add("Nathan Reardon") cmbbestbatter1.Items.Add("Nathan Reardon") cmbbestbowler.Items.Add("Chris Lynn") cmbbestbatter1.Items.Add("Chris Lynn") cmbbestbowler.Items.Add("James Hopes") cmbbestbatter1.Items.Add("James Hopes") cmbbestbowler.Items.Add("Ben Cutting") cmbbestbatter1.Items.Add("Ben Cutting") cmbbestbowler.Items.Add("Joe Burns") cmbbestbatter1.Items.Add("Joe Burns") cmbbestbowler.Items.Add("Luke Feldman") cmbbestbatter1.Items.Add("Luke Feldman") cmbbestbowler.Items.Add("Jason Floros") cmbbestbatter1.Items.Add("Jason Floros") cmbbestbowler.Items.Add("Andrew Fekete") cmbbestbatter1.Items.Add("Andrew Fekete")

Page 39: SSD Major Portfolio

38

cmbbestbowler.Items.Add("Samuel Badree") cmbbestbatter1.Items.Add("Samuel Badree") cmbbestbowler.Items.Add("Alex Doolan") cmbbestbatter1.Items.Add("Alex Doolan") ElseIf cmbteam1.SelectedItem = "Melbourne Stars" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Hussey") cmbbestbowler.Items.Add("David Hussey") cmbbestbowler.Items.Add("Luke Wright") cmbbestbatter1.Items.Add("Luke Wright") cmbbestbowler.Items.Add("Marcus Stoinis") cmbbestbatter1.Items.Add("Marcus Stoinis") cmbbestbowler.Items.Add("Kevin Pietersen") cmbbestbatter1.Items.Add("Kevin Pietersen") cmbbestbowler.Items.Add("Glenn Maxwell") cmbbestbatter1.Items.Add("Glenn Maxwell") cmbbestbowler.Items.Add("Rob Quiney") cmbbestbatter1.Items.Add("Rob Quiney") cmbbestbowler.Items.Add("James Faulkner") cmbbestbatter1.Items.Add("James Faulkner") cmbbestbowler.Items.Add("Peter Handscomb") cmbbestbatter1.Items.Add("Peter Handscomb") cmbbestbowler.Items.Add("John Hastings") cmbbestbatter1.Items.Add("John Hastings") cmbbestbowler.Items.Add("Samuel Badree") cmbbestbatter1.Items.Add("Ben Hilfenhaus") cmbbestbowler.Items.Add("Adam Zampa") cmbbestbatter1.Items.Add("Adam Zampa") ElseIf cmbteam1.SelectedItem = "Melbourne Renegades" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Aaron Finch") cmbbestbowler.Items.Add("Aaron Finch") cmbbestbowler.Items.Add("Chris Gayle") cmbbestbatter1.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Cameron White") cmbbestbatter1.Items.Add("Cameron White") cmbbestbowler.Items.Add("Matthew Wade") cmbbestbatter1.Items.Add("Matthew Wade") cmbbestbowler.Items.Add("Tom Beaton") cmbbestbatter1.Items.Add("Tom Beaton") cmbbestbowler.Items.Add("Dwayne Bravo") cmbbestbatter1.Items.Add("Dwayne Bravo") cmbbestbowler.Items.Add("James Faulkner") cmbbestbatter1.Items.Add("Xavier Doherty") cmbbestbowler.Items.Add("Xavier Doherty") cmbbestbatter1.Items.Add("Callum Ferguson") cmbbestbowler.Items.Add("Peter Siddle") cmbbestbatter1.Items.Add("Peter Siddle") cmbbestbowler.Items.Add("Chris Tremain") cmbbestbatter1.Items.Add("Chris Tremain") cmbbestbowler.Items.Add("Nathan Rimmington") cmbbestbatter1.Items.Add("Nathan Rimminington") ElseIf cmbteam1.SelectedItem = "Perth Scorchers" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Michael Carberry") cmbbestbowler.Items.Add("Michael Carberry") cmbbestbowler.Items.Add("Michael Klinger")

Page 40: SSD Major Portfolio

39

cmbbestbatter1.Items.Add("Michael Klinger") cmbbestbowler.Items.Add("Shaun Marsh") cmbbestbatter1.Items.Add("Shaun Marsh") cmbbestbowler.Items.Add("Mitchell Marsh") cmbbestbatter1.Items.Add("Mitchell Marsh") cmbbestbowler.Items.Add("Marcus Harris") cmbbestbatter1.Items.Add("Marcus Harris") cmbbestbowler.Items.Add("David Willey") cmbbestbatter1.Items.Add("David Willey") cmbbestbowler.Items.Add("Ashton Agar") cmbbestbatter1.Items.Add("Ashton Agar") cmbbestbowler.Items.Add("Brad Hogg") cmbbestbatter1.Items.Add("Brad Hogg") cmbbestbowler.Items.Add("Jason Behrendoff") cmbbestbatter1.Items.Add("Jason Behrendoff") cmbbestbowler.Items.Add("Adam Voges") cmbbestbatter1.Items.Add("Adam Voges") cmbbestbowler.Items.Add("Nathan Coulter Nile") cmbbestbatter1.Items.Add("Nathan Coulter Nile") ElseIf cmbteam1.SelectedItem = "Adelaide Strikers" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Brad Hodge") cmbbestbowler.Items.Add("Brad Hodge") cmbbestbowler.Items.Add("Craig Simmons") cmbbestbatter1.Items.Add("Craig Simmons") cmbbestbowler.Items.Add("Tim Ludeman") cmbbestbatter1.Items.Add("Tim Ludeman") cmbbestbowler.Items.Add("Travis Head") cmbbestbatter1.Items.Add("Travis Head") cmbbestbowler.Items.Add("Alex Ross") cmbbestbatter1.Items.Add("Alex Ross") cmbbestbowler.Items.Add("Miehala Jayawardne") cmbbestbatter1.Items.Add("Miehala Jayawardne") cmbbestbowler.Items.Add("Ben Laughlin") cmbbestbatter1.Items.Add("Ben Laughlin") cmbbestbowler.Items.Add("Kane Richardson") cmbbestbatter1.Items.Add("Kane Richardson") cmbbestbowler.Items.Add("Gary Putland") cmbbestbatter1.Items.Add("Gary Putland") cmbbestbowler.Items.Add("Kelvin Smith") cmbbestbatter1.Items.Add("Kelvin Smith") cmbbestbowler.Items.Add("Keiron Pollard") cmbbestbatter1.Items.Add("Keiron Pollard") ElseIf cmbteam1.SelectedItem = "Hobart Hurricanes" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Tim Paine") cmbbestbowler.Items.Add("Tim Paine") cmbbestbowler.Items.Add("Ben Dunk") cmbbestbatter1.Items.Add("Ben Dunk") cmbbestbowler.Items.Add("Kumar Sangakara") cmbbestbatter1.Items.Add("Kumar Sangakara") cmbbestbowler.Items.Add("George Bailey") cmbbestbatter1.Items.Add("George Bailey") cmbbestbowler.Items.Add("Dan Chrisitian") cmbbestbatter1.Items.Add("Dan Christian") cmbbestbowler.Items.Add("Darren Sammy") cmbbestbatter1.Items.Add("Darren Sammy") cmbbestbowler.Items.Add("Clive Rose") cmbbestbatter1.Items.Add("Clive Rose") cmbbestbowler.Items.Add("Shaun Tait")

Page 41: SSD Major Portfolio

40

cmbbestbatter1.Items.Add("Shaun Tait") cmbbestbowler.Items.Add("Simon Milenko") cmbbestbatter1.Items.Add("Simon Milenko") cmbbestbowler.Items.Add("Jake Reed") cmbbestbatter1.Items.Add("Jake Reed") cmbbestbowler.Items.Add("Sam Rainbird") cmbbestbatter1.Items.Add("Sam Rainbird") ' Kolkata Knight Riders ElseIf cmbteam1.SelectedItem = "Kolkata Knight Riders" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Guatam Ghambir") cmbbestbowler.Items.Add("Guatam Ghambir") cmbbestbowler.Items.Add("Sheldon Jackson") cmbbestbatter1.Items.Add("Sheldon Jackson") cmbbestbowler.Items.Add("Chris Lynn") cmbbestbatter1.Items.Add("Chris Lynn") cmbbestbowler.Items.Add("Sunil Narine") cmbbestbatter1.Items.Add("Sunil Narine") cmbbestbowler.Items.Add("Andre Russell") cmbbestbatter1.Items.Add("Andre Russell") cmbbestbowler.Items.Add("Piyush Chawla") cmbbestbatter1.Items.Add("Piyush Chawla") cmbbestbowler.Items.Add("Shakib Al Hasan") cmbbestbatter1.Items.Add("Jason Holder") cmbbestbowler.Items.Add("Jason Holder") cmbbestbatter1.Items.Add("John Hastings") cmbbestbowler.Items.Add("John Hastings") cmbbestbatter1.Items.Add("Morne Morkel") cmbbestbowler.Items.Add("Brad Hogg") cmbbestbatter1.Items.Add("Brad Hogg") cmbbestbowler.Items.Add("Morne Morkel") cmbbestbatter1.Items.Add("Shakib Al Hasan") ' Mumbai Indians ElseIf cmbteam1.SelectedItem = "Mumbai Indians" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Rohit Sharma") cmbbestbowler.Items.Add("Rohit Sharma") cmbbestbowler.Items.Add("Corey Anderson") cmbbestbatter1.Items.Add("Corey Anderson") cmbbestbowler.Items.Add("Vinay Kumar") cmbbestbatter1.Items.Add("Vinay Kumar") cmbbestbowler.Items.Add("Jos Butler") cmbbestbatter1.Items.Add("Jos Butler") cmbbestbowler.Items.Add("Nitish Rana") cmbbestbatter1.Items.Add("Nitish Rana") cmbbestbowler.Items.Add("Keiron Pollard") cmbbestbatter1.Items.Add("Keiron Pollard") cmbbestbowler.Items.Add("Harbhajan Singh") cmbbestbatter1.Items.Add("Harbhajan Singh") cmbbestbowler.Items.Add("Jasprit Bumrah") cmbbestbatter1.Items.Add("Jasprit Bumrah") cmbbestbowler.Items.Add("Lasith Malinga") cmbbestbatter1.Items.Add("Lasith Malinga") cmbbestbowler.Items.Add("Tim Southee") cmbbestbatter1.Items.Add("Tim Southee") cmbbestbowler.Items.Add("Jitesh Sharma") cmbbestbatter1.Items.Add("Jitesh Sharma")

Page 42: SSD Major Portfolio

41

' Sunrisers Hyperbad ElseIf cmbteam1.SelectedItem = "Sunrisers Hyperbad" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Warner") cmbbestbowler.Items.Add("David Warner") cmbbestbowler.Items.Add("Eoin Morgan") cmbbestbatter1.Items.Add("Eoin Morgan") cmbbestbowler.Items.Add("Kane Williamson") cmbbestbatter1.Items.Add("Kane Williamson") cmbbestbowler.Items.Add("Yuvraj Singh") cmbbestbatter1.Items.Add("Yuvjraj Singh") cmbbestbowler.Items.Add("Moses Henriques") cmbbestbatter1.Items.Add("Moses Henriques") cmbbestbowler.Items.Add("Ricky Bhui") cmbbestbatter1.Items.Add("Ricky Bhui") cmbbestbowler.Items.Add("Ashish Nehra") cmbbestbatter1.Items.Add("Ashish Nehra") cmbbestbowler.Items.Add("Ben Cutting") cmbbestbatter1.Items.Add("Ben Cutting") cmbbestbowler.Items.Add("Trent Boult") cmbbestbatter1.Items.Add("Trent Boult") cmbbestbowler.Items.Add("Vijay Shankar") cmbbestbatter1.Items.Add("Vijay Shankar") cmbbestbowler.Items.Add("Shikhar Dhawan") cmbbestbatter1.Items.Add("Shikhar Dhawan") ' Dehli Daredevils ElseIf cmbteam1.SelectedItem = "Dehli Daredevlis" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Quinton De Kock") cmbbestbowler.Items.Add("Quinton De Kock") cmbbestbowler.Items.Add("Amit Mishra") cmbbestbatter1.Items.Add("Amit Mishra") cmbbestbowler.Items.Add("JP Duminy") cmbbestbatter1.Items.Add("JP Duminy") cmbbestbowler.Items.Add("Travis Head") cmbbestbatter1.Items.Add("Travis Head") cmbbestbowler.Items.Add("Mohammed Shami") cmbbestbatter1.Items.Add("Mohammed Shami") cmbbestbowler.Items.Add("Zaheer Khan") cmbbestbatter1.Items.Add("Zaheer Khan") cmbbestbowler.Items.Add("Carlos Braithwaite") cmbbestbatter1.Items.Add("Carlos Braithwaite") cmbbestbowler.Items.Add("Nathan Coulter Nile") cmbbestbatter1.Items.Add("Nathan Coulter Nile") cmbbestbowler.Items.Add("Joel Paris") cmbbestbatter1.Items.Add("Joel Paris") cmbbestbowler.Items.Add("Pawan Suyal") cmbbestbatter1.Items.Add("Pawan Suyal") cmbbestbowler.Items.Add("Albie Morkel") cmbbestbatter1.Items.Add("Albie Morkel") 'Gujarat Lions ElseIf cmbteam1.SelectedItem = "Gujarat Lions" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Brendon McCullum") cmbbestbowler.Items.Add("Brendon McCullum")

Page 43: SSD Major Portfolio

42

cmbbestbowler.Items.Add("Aaron Finch") cmbbestbatter1.Items.Add("Aaron Finch") cmbbestbowler.Items.Add("Suresh Raina") cmbbestbatter1.Items.Add("Suresh Raina") cmbbestbowler.Items.Add("Dwayne Smith") cmbbestbatter1.Items.Add("Dwayne Smith") cmbbestbowler.Items.Add("Ishan Kishan") cmbbestbatter1.Items.Add("Ishan Kishan") cmbbestbowler.Items.Add("James Faulkner") cmbbestbatter1.Items.Add("James Faulkner") cmbbestbowler.Items.Add("Aksh Deep Nath") cmbbestbatter1.Items.Add("Aksh Deep Nath") cmbbestbowler.Items.Add("Andrew Tye") cmbbestbatter1.Items.Add("Andrew Tye") cmbbestbowler.Items.Add("Dale Steyn") cmbbestbatter1.Items.Add("Dale Steyn") cmbbestbowler.Items.Add("Umang Sharma") cmbbestbatter1.Items.Add("Umang Sharm") cmbbestbowler.Items.Add("Praveen Kumar") cmbbestbatter1.Items.Add("Praveen Kumar") 'Pune Supergiants ElseIf cmbteam1.SelectedItem = "Pune Supergiants" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("MS Dhoni") cmbbestbowler.Items.Add("MS Dhoni") cmbbestbowler.Items.Add("Faf du plesis") cmbbestbatter1.Items.Add("Faf du Plesis") cmbbestbowler.Items.Add("Kevin Pietersen") cmbbestbatter1.Items.Add("Kevin Pietersen") cmbbestbowler.Items.Add("Steve Smith") cmbbestbatter1.Items.Add("Steve Smith") cmbbestbowler.Items.Add("Mitchell Marsh") cmbbestbatter1.Items.Add("Mitchell Marsh") cmbbestbowler.Items.Add("RP Singh") cmbbestbatter1.Items.Add("RP Singh") cmbbestbowler.Items.Add("Peter Handscomb") cmbbestbatter1.Items.Add("Peter Handscomb") cmbbestbowler.Items.Add("Ishwar Pandey") cmbbestbatter1.Items.Add("Ishwar Pandey") cmbbestbowler.Items.Add("Ankit Sharma") cmbbestbatter1.Items.Add("Ankit Sharma") cmbbestbowler.Items.Add("Adam Zampa") cmbbestbatter1.Items.Add("Adam Zampa") cmbbestbowler.Items.Add("Scott Boland") cmbbestbatter1.Items.Add("Scott Boland") 'Royal Challengers Bangalore ElseIf cmbteam1.SelectedItem = "Royal Challengers Bangalore" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Virat Kohli") cmbbestbatter1.Items.Add("Virat Kohli") cmbbestbowler.Items.Add("AB Devilliers") cmbbestbatter1.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("Shane Watson") cmbbestbatter1.Items.Add("Shane Watson") cmbbestbowler.Items.Add("Safraz Khan") cmbbestbatter1.Items.Add("Safraz Khan")

Page 44: SSD Major Portfolio

43

cmbbestbowler.Items.Add("Harshal Patel") cmbbestbatter1.Items.Add("Harshal Patel") cmbbestbowler.Items.Add("Praveen Dubbey") cmbbestbatter1.Items.Add("Praveen Dubbey") cmbbestbowler.Items.Add("Ashkay Karnewar") cmbbestbatter1.Items.Add("Ashkay Karnewar") cmbbestbowler.Items.Add("Vikramjeet Malik") cmbbestbatter1.Items.Add("Vikramjeet Malik") cmbbestbowler.Items.Add("Kane Richardson") cmbbestbatter1.Items.Add("Kane Richardson") cmbbestbowler.Items.Add("Mitchell Starc") cmbbestbatter1.Items.Add("Mitchell Starc") ' Kings XI Punjab ElseIf cmbteam1.SelectedItem = "Kings XI Punjab" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Miller") cmbbestbowler.Items.Add("David Miller") cmbbestbowler.Items.Add("Marcus Stoinis") cmbbestbatter1.Items.Add("Marcus Stoinis") cmbbestbowler.Items.Add("Shaun Marsh") cmbbestbatter1.Items.Add("Shaun Marsh") cmbbestbowler.Items.Add("Glenn Maxwell") cmbbestbatter1.Items.Add("Glenn Maxwell") cmbbestbowler.Items.Add("Shardul Thakur") cmbbestbatter1.Items.Add("Shardul Thakur") cmbbestbowler.Items.Add("Murali Vijay") cmbbestbatter1.Items.Add("Murali Vijay") cmbbestbowler.Items.Add("Akshar Patel") cmbbestbatter1.Items.Add("Akshar Patel") cmbbestbowler.Items.Add("Anureet Singh") cmbbestbatter1.Items.Add("Anureet Singh") cmbbestbowler.Items.Add("Mitchell Johnson") cmbbestbatter1.Items.Add("Mitchell Johnson") cmbbestbowler.Items.Add("Kyle Abbott") cmbbestbatter1.Items.Add("Kyle Abott") cmbbestbowler.Items.Add("Pradeep Sahu") cmbbestbatter1.Items.Add("Pradeep Sahu") 'Australia T20 ElseIf cmbteam1.SelectedItem = "Australia T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Warner") cmbbestbowler.Items.Add("David Warner") cmbbestbowler.Items.Add("Usman Khawaja") cmbbestbatter1.Items.Add("Usman Khawaja") cmbbestbowler.Items.Add("Shane Watson") cmbbestbatter1.Items.Add("Shane Watson") cmbbestbowler.Items.Add("Glenn Maxwell") cmbbestbatter1.Items.Add("Glenn Maxwell") cmbbestbowler.Items.Add("Steve Smith") cmbbestbatter1.Items.Add("Steve Smith") cmbbestbowler.Items.Add("Peter Nevill") cmbbestbatter1.Items.Add("Peter Nevill") cmbbestbowler.Items.Add("John Hastings") cmbbestbatter1.Items.Add("John Hastings") cmbbestbowler.Items.Add("James Faulkner") cmbbestbatter1.Items.Add("James Faulkner") cmbbestbowler.Items.Add("Adam Zampa") cmbbestbatter1.Items.Add("Adam Zampa")

Page 45: SSD Major Portfolio

44

cmbbestbowler.Items.Add("Nathan Coulter Nile") cmbbestbatter1.Items.Add("Nathan Coulter Nile") cmbbestbowler.Items.Add("Josh Hazlewood") cmbbestbatter1.Items.Add("Josh Hazlewood") 'South Africa T20 ElseIf cmbteam1.SelectedItem = "South Africa T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("Hashim Amla") cmbbestbatter1.Items.Add("Hashim Amla") cmbbestbowler.Items.Add("David Miller") cmbbestbatter1.Items.Add("David Miller") cmbbestbowler.Items.Add("Faf Du Plesis") cmbbestbatter1.Items.Add("Faf Du Plesis") cmbbestbowler.Items.Add("Quinton De Kock") cmbbestbatter1.Items.Add("Quinton De Kock") cmbbestbowler.Items.Add("Farhaan Behardien") cmbbestbatter1.Items.Add("Farhaan Behardien") cmbbestbowler.Items.Add("Kyle Abbott") cmbbestbatter1.Items.Add("Kyle Abbott") cmbbestbowler.Items.Add("David Wiese") cmbbestbatter1.Items.Add("David Wiese") cmbbestbowler.Items.Add("Chris Morris") cmbbestbatter1.Items.Add("Chris Morris") cmbbestbowler.Items.Add("Imran Tahir") cmbbestbatter1.Items.Add("Imran Tahir") cmbbestbowler.Items.Add("Dale Steyn") cmbbestbatter1.Items.Add("Dale Steyn") ' Sri Lanka T20 ElseIf cmbteam1.SelectedItem = "Sri Lanka T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Angelo Matthews") cmbbestbowler.Items.Add("Angelo Matthews") cmbbestbowler.Items.Add("Dinesh Chandimal") cmbbestbatter1.Items.Add("Dinesh Chandimal") cmbbestbowler.Items.Add("Shehan Jaysuria") cmbbestbatter1.Items.Add("Shehan Jaysuria") cmbbestbowler.Items.Add("Tillakaratne Dishlan") cmbbestbatter1.Items.Add("Tillakaratne Dishlan") cmbbestbowler.Items.Add("Milinda Siriwandana") cmbbestbatter1.Items.Add("Milinda Siriwandana") cmbbestbowler.Items.Add("Rangana Herath") cmbbestbatter1.Items.Add("Rangana Herath") cmbbestbowler.Items.Add("Suranaga Lakmal") cmbbestbatter1.Items.Add("Suranaga Lakmal") cmbbestbowler.Items.Add("Nuwan Kulasekara") cmbbestbatter1.Items.Add("Nuwan Kulasekara") cmbbestbowler.Items.Add("Lahiru Thirimanne") cmbbestbatter1.Items.Add("Lahiru Thirimanne") cmbbestbowler.Items.Add("Dasun Shanaka") cmbbestbatter1.Items.Add("Dasun Shanaka") cmbbestbowler.Items.Add("Lasith Malinga") cmbbestbatter1.Items.Add("Lasith Malinga") ' England T20 ElseIf cmbteam1.SelectedItem = "England T20" Then

Page 46: SSD Major Portfolio

45

cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Alex Hales") cmbbestbatter1.Items.Add("Alex Hales") cmbbestbowler.Items.Add("Joe Root") cmbbestbatter1.Items.Add("Joe Root") cmbbestbowler.Items.Add("Eoin Morgan") cmbbestbatter1.Items.Add("Eoin Morgan") cmbbestbowler.Items.Add("Ben Stokes") cmbbestbatter1.Items.Add("Ben Stokes") cmbbestbowler.Items.Add("Jason Roy") cmbbestbatter1.Items.Add("Jason Roy") cmbbestbowler.Items.Add("Sam Billings") cmbbestbatter1.Items.Add("Sam Billings") cmbbestbowler.Items.Add("David Willey") cmbbestbatter1.Items.Add("David Willey") cmbbestbowler.Items.Add("Chris Jordan") cmbbestbatter1.Items.Add("Chris Jordan") cmbbestbowler.Items.Add("Liam Plunkett") cmbbestbatter1.Items.Add("Liam Plunkett") cmbbestbowler.Items.Add("Adil Rashid") cmbbestbatter1.Items.Add("Adil Rashid") 'Bangledesh T20 ElseIf cmbteam1.SelectedItem = "Bangledesh T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Mashrafe Mortaza") cmbbestbowler.Items.Add("Mashrafe Mortaza") cmbbestbowler.Items.Add("Abu Hider") cmbbestbatter1.Items.Add("Abu Hider") cmbbestbowler.Items.Add("Mahmullah") cmbbestbatter1.Items.Add("Mahmullah") cmbbestbowler.Items.Add("Mushfiqur Rahim") cmbbestbatter1.Items.Add("Mushfiqur Rahim") cmbbestbowler.Items.Add("Nasir Hossain") cmbbestbatter1.Items.Add("Nasir Hossain") cmbbestbowler.Items.Add("Sabhir Rahman") cmbbestbatter1.Items.Add("Sabhir Rahman") cmbbestbowler.Items.Add("Tanim Iqbal") cmbbestbatter1.Items.Add("Tanim Iqbal") cmbbestbowler.Items.Add("Saqlain Sajib") cmbbestbatter1.Items.Add("Saqlain Sajib") cmbbestbowler.Items.Add("Al-Amin Hossain") cmbbestbatter1.Items.Add("Al-Amin Hossaimn") cmbbestbowler.Items.Add("Nurul Hasan") cmbbestbatter1.Items.Add("Nurul Hasan") cmbbestbowler.Items.Add("Muktar Ali") cmbbestbatter1.Items.Add("Muktar Ali") 'New Zealand T20 ElseIf cmbteam1.SelectedItem = "New Zealand T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Kane Williamson") cmbbestbatter1.Items.Add("Kane Williamson") cmbbestbowler.Items.Add("Ross Taylor")

Page 47: SSD Major Portfolio

46

cmbbestbatter1.Items.Add("Ross Taylor") cmbbestbowler.Items.Add("Henry Nicholls") cmbbestbatter1.Items.Add("Henry Nicholls") cmbbestbowler.Items.Add("Corey Anderson") cmbbestbatter1.Items.Add("Corey Anderson") cmbbestbowler.Items.Add("Luke Ronchi") cmbbestbatter1.Items.Add("Luke Ronchi") cmbbestbowler.Items.Add("Grant Elliot") cmbbestbatter1.Items.Add("Grant Elliot") cmbbestbowler.Items.Add("Nathan McCullum") cmbbestbatter1.Items.Add("Nathan McCullum") cmbbestbowler.Items.Add("Ish Sodhi") cmbbestbatter1.Items.Add("Ish Sodhi") cmbbestbowler.Items.Add("Tim Southee") cmbbestbatter1.Items.Add("Tim Southee") cmbbestbowler.Items.Add("Trent Boult") cmbbestbatter1.Items.Add("Trent Boult") 'Pakistan T20 ElseIf cmbteam1.SelectedItem = "Pakistan T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Anwar Ali") cmbbestbowler.Items.Add("Anwar Ali") cmbbestbowler.Items.Add("Mohammed Hafeez") cmbbestbatter1.Items.Add("Mohammed Hafeez") cmbbestbowler.Items.Add("Khalid Latif") cmbbestbatter1.Items.Add("Khalid latif") cmbbestbowler.Items.Add("Shoaib Malik") cmbbestbatter1.Items.Add("Shoaib Malik") cmbbestbowler.Items.Add("Shahid Afridi") cmbbestbatter1.Items.Add("Shahid Afridi") cmbbestbowler.Items.Add("Ahmed Shezad") cmbbestbatter1.Items.Add("Ahmed Shezad") cmbbestbowler.Items.Add("Imad Wasim") cmbbestbatter1.Items.Add("Imad Wasim") cmbbestbowler.Items.Add("Mohammed Ifran") cmbbestbatter1.Items.Add("Mohammed Ifran") cmbbestbowler.Items.Add("Mohammed Sami") cmbbestbatter1.Items.Add("Mohammed Sami") cmbbestbowler.Items.Add("Mohammed Amir") cmbbestbatter1.Items.Add("Mohammed Amir") cmbbestbowler.Items.Add("Umar Akmal") cmbbestbatter1.Items.Add("Umar Akmal") 'Zimbabwe T20 ElseIf cmbteam1.SelectedItem = "Zimbabwe T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Hamilton Masakadaza") cmbbestbowler.Items.Add("Hamilton Masakadaza") cmbbestbowler.Items.Add("Chamu Chibhabha") cmbbestbatter1.Items.Add("Chamu Chibhabha") cmbbestbowler.Items.Add("Tendai Chisoro") cmbbestbatter1.Items.Add("Tendai Chisoro") cmbbestbowler.Items.Add("Peter Moor") cmbbestbatter1.Items.Add("Peter Moor") cmbbestbowler.Items.Add("Richard Mutumbami") cmbbestbatter1.Items.Add("Richard Mutumbami") cmbbestbowler.Items.Add("Vusi Sibanda") cmbbestbatter1.Items.Add("Vusi Sibanda") cmbbestbowler.Items.Add("Donald Tiripano")

Page 48: SSD Major Portfolio

47

cmbbestbatter1.Items.Add("Donald Tiripano") cmbbestbowler.Items.Add("Sean Williams") cmbbestbatter1.Items.Add("Sean Williams") cmbbestbowler.Items.Add("Tendai Chatara") cmbbestbatter1.Items.Add("Tendai Chatara") cmbbestbowler.Items.Add("Elton Chigumbura") cmbbestbatter1.Items.Add("Elton Chigumbura") cmbbestbowler.Items.Add("Sikandar Raza") cmbbestbatter1.Items.Add("Sikandar Raza") 'West Indies T20 ElseIf cmbteam1.SelectedItem = "West Indies T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Carlos Braithwaite") cmbbestbatter1.Items.Add("Carlos Braithwaite") cmbbestbowler.Items.Add("Marlon Samuels") cmbbestbatter1.Items.Add("Marlon Samuels") cmbbestbowler.Items.Add("Dwayne Bravo") cmbbestbatter1.Items.Add("Dwayne Bravo") cmbbestbowler.Items.Add("Andre Russell") cmbbestbatter1.Items.Add("Andre Russell") cmbbestbowler.Items.Add("Danesh Ramdin") cmbbestbatter1.Items.Add("Danesh Ramdin") cmbbestbowler.Items.Add("Darren Sammy") cmbbestbatter1.Items.Add("Darren Sammy") cmbbestbowler.Items.Add("Jason Holder") cmbbestbatter1.Items.Add("Jason Holder") cmbbestbowler.Items.Add("Sulieman Benn") cmbbestbatter1.Items.Add("Sulieman Benn") cmbbestbowler.Items.Add("Johnson Charles") cmbbestbatter1.Items.Add("Johnson Charles") cmbbestbowler.Items.Add("Jerome Taylor") cmbbestbatter1.Items.Add("Jerome Taylor") 'India T20 ElseIf cmbteam1.SelectedItem = "India T20" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Rohit Sharma") cmbbestbatter1.Items.Add("Rohit Sharma") cmbbestbowler.Items.Add("Virat Kholi") cmbbestbatter1.Items.Add("Virat Kohli") cmbbestbowler.Items.Add("Yujraj Singh") cmbbestbatter1.Items.Add("Yujraj Singh") cmbbestbowler.Items.Add("MS Dhoni") cmbbestbatter1.Items.Add("MS Dhoni") cmbbestbowler.Items.Add("Suresh Raina") cmbbestbatter1.Items.Add("Suresh Raina") cmbbestbowler.Items.Add("Ajinkya Rahane") cmbbestbatter1.Items.Add("Ajinkya Rahane") cmbbestbowler.Items.Add("Manish Pandey") cmbbestbatter1.Items.Add("Manish Pandey") cmbbestbowler.Items.Add("Harbhajan Singh") cmbbestbatter1.Items.Add("Harbhajan Singh") cmbbestbowler.Items.Add("Jasprit Bumrah") cmbbestbatter1.Items.Add("Jasprit Bumrah") cmbbestbowler.Items.Add("Ravichandran Ashwin")

Page 49: SSD Major Portfolio

48

cmbbestbatter1.Items.Add("Ravichandran Ashwin") 'Australia ODI ElseIf cmbteam1.SelectedItem = "Australia ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Warner") cmbbestbowler.Items.Add("David Warner") cmbbestbowler.Items.Add("Aaron Finch") cmbbestbatter1.Items.Add("Aaron Finch") cmbbestbowler.Items.Add("Shane Watson") cmbbestbatter1.Items.Add("Shane Watson") cmbbestbowler.Items.Add("Glenn Maxwell") cmbbestbatter1.Items.Add("Glenn Maxwell") cmbbestbowler.Items.Add("Steve Smith") cmbbestbatter1.Items.Add("Steve Smith") cmbbestbowler.Items.Add("Brad Haddin") cmbbestbatter1.Items.Add("Brad Haddin") cmbbestbowler.Items.Add("Michael Clarke") cmbbestbatter1.Items.Add("Michael Clarke") cmbbestbowler.Items.Add("James Faulkner") cmbbestbatter1.Items.Add("James Faulkner") cmbbestbowler.Items.Add("Mitchell Marsh") cmbbestbatter1.Items.Add("Mitchell Marsh") cmbbestbowler.Items.Add("Mitchell Starc") cmbbestbatter1.Items.Add("Mitchell Starc") cmbbestbowler.Items.Add("Josh Hazlewood") cmbbestbatter1.Items.Add("Josh Hazlewood") 'South Africa ODI ElseIf cmbteam1.SelectedItem = "South Africa ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("Hashim Amla") cmbbestbatter1.Items.Add("Hashim Amla") cmbbestbowler.Items.Add("David Miller") cmbbestbatter1.Items.Add("David Miller") cmbbestbowler.Items.Add("Faf Du Plesis") cmbbestbatter1.Items.Add("Faf Du Plesis") cmbbestbowler.Items.Add("Quinton De Kock") cmbbestbatter1.Items.Add("Quinton De Kock") cmbbestbowler.Items.Add("JP Duminy") cmbbestbatter1.Items.Add("JP Duminy") cmbbestbowler.Items.Add("Kyle Abbott") cmbbestbatter1.Items.Add("Kyle Abbott") cmbbestbowler.Items.Add("Rilee Rossuow") cmbbestbatter1.Items.Add("Rilee Rossuow") cmbbestbowler.Items.Add("Morne Morkel") cmbbestbatter1.Items.Add("Morne Morkel") cmbbestbowler.Items.Add("Imran Tahir") cmbbestbatter1.Items.Add("Imran Tahir") cmbbestbowler.Items.Add("Dale Steyn") cmbbestbatter1.Items.Add("Dale Steyn") ' Sri Lanka ODI ElseIf cmbteam1.SelectedItem = "Sri Lanka ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear()

Page 50: SSD Major Portfolio

49

cmbbestbatter1.Items.Add("Angelo Matthews") cmbbestbowler.Items.Add("Angelo Matthews") cmbbestbowler.Items.Add("Dushmantha Chameera") cmbbestbatter1.Items.Add("Dushmantha Chameera") cmbbestbowler.Items.Add("Lahiru Thirimanne") cmbbestbatter1.Items.Add("Lahiru Thirimanne") cmbbestbowler.Items.Add("Tillakaratne Dishlan") cmbbestbatter1.Items.Add("Tillakaratne Dishlan") cmbbestbowler.Items.Add("Mahela Jayawardene") cmbbestbatter1.Items.Add("Mahela Jayawardene") cmbbestbowler.Items.Add("Kumar Sangakara") cmbbestbatter1.Items.Add("Kumar Sangakara") cmbbestbowler.Items.Add("Tharindu Kaushal") cmbbestbatter1.Items.Add("Tharindu Kaushal") cmbbestbowler.Items.Add("Thisara Perera") cmbbestbatter1.Items.Add("Thisara Perera") cmbbestbowler.Items.Add("Kusal Perera") cmbbestbatter1.Items.Add("Kusal Perera") cmbbestbowler.Items.Add("Upul Tharanga") cmbbestbatter1.Items.Add("Upul Tharanga") cmbbestbowler.Items.Add("Lasith Malinga") cmbbestbatter1.Items.Add("Lasith Malinga") ' England ODI ElseIf cmbteam1.SelectedItem = "England ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Alex Hales") cmbbestbatter1.Items.Add("Alex Hales") cmbbestbowler.Items.Add("Joe Root") cmbbestbatter1.Items.Add("Joe Root") cmbbestbowler.Items.Add("Eoin Morgan") cmbbestbatter1.Items.Add("Eoin Morgan") cmbbestbowler.Items.Add("Ben Stokes") cmbbestbatter1.Items.Add("Ben Stokes") cmbbestbowler.Items.Add("Jason Roy") cmbbestbatter1.Items.Add("Jason Roy") cmbbestbowler.Items.Add("James Anderson") cmbbestbatter1.Items.Add("James Anderson") cmbbestbowler.Items.Add("Ravi Bopara") cmbbestbatter1.Items.Add("Ravi Bopara") cmbbestbowler.Items.Add("Chris Jordan") cmbbestbatter1.Items.Add("Chris Jordan") cmbbestbowler.Items.Add("Stuart Broad") cmbbestbatter1.Items.Add("Stuart Broad") cmbbestbowler.Items.Add("Stuart Finn") cmbbestbatter1.Items.Add("Stuart Finn") 'Bangledesh ODI ElseIf cmbteam1.SelectedItem = "Bangledesh ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Imrul Keyes") cmbbestbowler.Items.Add("Imrul Keyes") cmbbestbowler.Items.Add("Mahmudullah") cmbbestbatter1.Items.Add("Mahmudullah") cmbbestbowler.Items.Add("Arafat Sunny") cmbbestbatter1.Items.Add("Arafat Sunny") cmbbestbowler.Items.Add("Mashrafe Mortaza") cmbbestbatter1.Items.Add("Mashrafe Mortaza")

Page 51: SSD Major Portfolio

50

cmbbestbowler.Items.Add("Sabbir Rahman") cmbbestbatter1.Items.Add("Sabbir Rahman") cmbbestbowler.Items.Add("Mushfiqur Rahim") cmbbestbatter1.Items.Add("Mushfiqur Rahim") cmbbestbowler.Items.Add("Tanim Iqbal") cmbbestbatter1.Items.Add("Tanim Iqbal") cmbbestbowler.Items.Add("Sabbir Hossain") cmbbestbatter1.Items.Add("Sabbir Hossain") cmbbestbowler.Items.Add("Nasir Hossain") cmbbestbatter1.Items.Add("Nasir Hossain") cmbbestbowler.Items.Add("Tajul Islam") cmbbestbatter1.Items.Add("Tajul Islam") cmbbestbowler.Items.Add("Taskin Ahmed") cmbbestbatter1.Items.Add("Taskin Ahmed") 'New Zealand ODI ElseIf cmbteam1.SelectedItem = "New Zealand ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Kane Williamson") cmbbestbatter1.Items.Add("Kane Williamson") cmbbestbowler.Items.Add("Ross Taylor") cmbbestbatter1.Items.Add("Ross Taylor") cmbbestbowler.Items.Add("Brendon McCullum") cmbbestbatter1.Items.Add("Brendon McCullum") cmbbestbowler.Items.Add("Corey Anderson") cmbbestbatter1.Items.Add("Corey Anderson") cmbbestbowler.Items.Add("Luke Ronchi") cmbbestbatter1.Items.Add("Luke Ronchi") cmbbestbowler.Items.Add("Grant Elliot") cmbbestbatter1.Items.Add("Grant Elliot") cmbbestbowler.Items.Add("Nathan McCullum") cmbbestbatter1.Items.Add("Nathan McCullum") cmbbestbowler.Items.Add("Daniel Vettori") cmbbestbatter1.Items.Add("Daniel Vettori") cmbbestbowler.Items.Add("Tim Southee") cmbbestbatter1.Items.Add("Tim Southee") cmbbestbowler.Items.Add("Trent Boult") cmbbestbatter1.Items.Add("Trent Boult") 'Pakistan ODI ElseIf cmbteam1.SelectedItem = "Pakistan ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Misbah-ul-Haq") cmbbestbowler.Items.Add("Misbah-ul-Haq") cmbbestbowler.Items.Add("Safraz Ahmed") cmbbestbatter1.Items.Add("Safraz Ahmed") cmbbestbowler.Items.Add("Umar Akmal") cmbbestbatter1.Items.Add("Umar Akmal") cmbbestbowler.Items.Add("Haris Sohail") cmbbestbatter1.Items.Add("Haris Sohail") cmbbestbowler.Items.Add("Shahid Afridi") cmbbestbatter1.Items.Add("Shahid Afridi") cmbbestbowler.Items.Add("Rahat Ali") cmbbestbatter1.Items.Add("Rahat Ali") cmbbestbowler.Items.Add("Eshan Adil") cmbbestbatter1.Items.Add("Eshan Adil") cmbbestbowler.Items.Add("Sohail Khan") cmbbestbatter1.Items.Add("Sohail Khan")

Page 52: SSD Major Portfolio

51

cmbbestbowler.Items.Add("Sohaib Maqsood") cmbbestbatter1.Items.Add("Sohaib Maqsood") cmbbestbowler.Items.Add("Wahab Riaz") cmbbestbatter1.Items.Add("Wahab Riaz") cmbbestbowler.Items.Add("Younis Khan") cmbbestbatter1.Items.Add("Younis Khan") 'Zimbabwe ODI ElseIf cmbteam1.SelectedItem = "Zimbabwe ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Elton Chigumbura") cmbbestbowler.Items.Add("Elton Chigumbura") cmbbestbowler.Items.Add("Regis Chakabva") cmbbestbatter1.Items.Add("Regis Chakabva") cmbbestbowler.Items.Add("Brendon Taylor") cmbbestbatter1.Items.Add("Brendon Taylor") cmbbestbowler.Items.Add("Craig Ervine") cmbbestbatter1.Items.Add("Craig Ervine") cmbbestbowler.Items.Add("Solomon Mire") cmbbestbatter1.Items.Add("Solomon Mire") cmbbestbowler.Items.Add("Chamu Chibhabha") cmbbestbatter1.Items.Add("Chamu Chibhabha") cmbbestbowler.Items.Add("Chamu Chibhabha") cmbbestbatter1.Items.Add("Chamu Chibhabha") cmbbestbowler.Items.Add("Sean Williams") cmbbestbatter1.Items.Add("Sean Williams") cmbbestbowler.Items.Add("Stuart Matiksikenyeri") cmbbestbatter1.Items.Add("Stuart Matiksikenyeri") cmbbestbowler.Items.Add("Hamilton Masakadaza") cmbbestbatter1.Items.Add("Hamilton Masakadaza") cmbbestbowler.Items.Add("Sikandar Raza") cmbbestbatter1.Items.Add("Sikandar Raza") 'West Indies ODI ElseIf cmbteam1.SelectedItem = "West Indies ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Chris Gayle") cmbbestbowler.Items.Add("Dwayne Smith") cmbbestbatter1.Items.Add("Dwayne Smith") cmbbestbowler.Items.Add("Marlon Samuels") cmbbestbatter1.Items.Add("Marlon Samuels") cmbbestbowler.Items.Add("Danesh Ramdin") cmbbestbatter1.Items.Add("Danesh Ramdin") cmbbestbowler.Items.Add("Jason Holder") cmbbestbatter1.Items.Add("Jason Holder") cmbbestbowler.Items.Add("Andre Russell") cmbbestbatter1.Items.Add("Andre Russell") cmbbestbowler.Items.Add("Darren Sammy") cmbbestbatter1.Items.Add("Darren Sammy") cmbbestbowler.Items.Add("Nikita Simmons") cmbbestbatter1.Items.Add("Nikita Simmons") cmbbestbowler.Items.Add("Lendl Simmons") cmbbestbatter1.Items.Add("Lendl Simmons") cmbbestbowler.Items.Add("Kemar Roach") cmbbestbatter1.Items.Add("Kemar Roach") cmbbestbowler.Items.Add("Jerome Taylor") cmbbestbatter1.Items.Add("Jerome Taylor")

Page 53: SSD Major Portfolio

52

'India ODI ElseIf cmbteam1.SelectedItem = "India ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Rohit Sharma") cmbbestbatter1.Items.Add("Rohit Sharma") cmbbestbowler.Items.Add("Virat Kholi") cmbbestbatter1.Items.Add("Virat Kohli") cmbbestbowler.Items.Add("Suresh Raina") cmbbestbatter1.Items.Add("Suresh Raina") cmbbestbowler.Items.Add("MS Dhoni") cmbbestbatter1.Items.Add("MS Dhoni") cmbbestbowler.Items.Add("Axar Patel") cmbbestbatter1.Items.Add("Axar Patel") cmbbestbowler.Items.Add("Ajinkya Rahane") cmbbestbatter1.Items.Add("Ajinkya Rahane") cmbbestbowler.Items.Add("Ravindra Jadeja") cmbbestbatter1.Items.Add("Ravindra Jadeja") cmbbestbowler.Items.Add("Stuart Binny") cmbbestbatter1.Items.Add("Stuart Binny") cmbbestbowler.Items.Add("Mohammed Shami") cmbbestbatter1.Items.Add("Mohammed Shami") cmbbestbowler.Items.Add("Ravichandran Ashwin") cmbbestbatter1.Items.Add("Ravichandran Ashwin") 'Australia Test ElseIf cmbteam1.SelectedItem = "Australia ODI" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("David Warner") cmbbestbowler.Items.Add("David Warner") cmbbestbowler.Items.Add("Joe Burns") cmbbestbatter1.Items.Add("Joe Burns") cmbbestbowler.Items.Add("Usman Khwaja") cmbbestbatter1.Items.Add("Shane Watson") cmbbestbowler.Items.Add("Adam Voges") cmbbestbatter1.Items.Add("Adam Voges") cmbbestbowler.Items.Add("Steve Smith") cmbbestbatter1.Items.Add("Steve Smith") cmbbestbowler.Items.Add("Jackson Bird") cmbbestbatter1.Items.Add("Jackson Bird") cmbbestbowler.Items.Add("Peter Neville") cmbbestbatter1.Items.Add("Peter Neville") cmbbestbowler.Items.Add("Nathan Lyon") cmbbestbatter1.Items.Add("Nathan Lyon") cmbbestbowler.Items.Add("Mitchell Marsh") cmbbestbatter1.Items.Add("Mitchell Marsh") cmbbestbowler.Items.Add("Mitchell Starc") cmbbestbatter1.Items.Add("Mitchell Starc") cmbbestbowler.Items.Add("Josh Hazlewood") cmbbestbatter1.Items.Add("Josh Hazlewood") 'South Africa Test ElseIf cmbteam1.SelectedItem = "South Africa Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("AB Devilliers")

Page 54: SSD Major Portfolio

53

cmbbestbowler.Items.Add("AB Devilliers") cmbbestbowler.Items.Add("Hashim Amla") cmbbestbatter1.Items.Add("Hashim Amla") cmbbestbowler.Items.Add("Stiaan van Zyl") cmbbestbatter1.Items.Add("Stiaan van Zyl") cmbbestbowler.Items.Add("Faf Du Plesis") cmbbestbatter1.Items.Add("Faf Du Plesis") cmbbestbowler.Items.Add("Dane Vilas") cmbbestbatter1.Items.Add("Dane Vilas") cmbbestbowler.Items.Add("JP Duminy") cmbbestbatter1.Items.Add("JP Duminy") cmbbestbowler.Items.Add("Kyle Abbott") cmbbestbatter1.Items.Add("Kyle Abbott") cmbbestbowler.Items.Add("Kagiso Rabada") cmbbestbatter1.Items.Add("Kagiso Rabada") cmbbestbowler.Items.Add("Morne Morkel") cmbbestbatter1.Items.Add("Morne Morkel") cmbbestbowler.Items.Add("Imran Tahir") cmbbestbatter1.Items.Add("Imran Tahir") cmbbestbowler.Items.Add("Dale Steyn") cmbbestbatter1.Items.Add("Dale Steyn") ' Sri Lanka Test ElseIf cmbteam1.SelectedItem = "Sri Lanka Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Dimuth Karunaratne") cmbbestbowler.Items.Add("Dimuth Karunaratne") cmbbestbowler.Items.Add("Lahiru Thirimanne") cmbbestbatter1.Items.Add("Lahiru Thirimanne") cmbbestbowler.Items.Add("Dinesh Chandimal") cmbbestbatter1.Items.Add("Dinesh Chandimal") cmbbestbowler.Items.Add("Kusal Perera") cmbbestbatter1.Items.Add("Kusal Perera") cmbbestbowler.Items.Add("Angelo Mathews") cmbbestbatter1.Items.Add("Angelo Mathews") cmbbestbowler.Items.Add("Milinda Siriwardana") cmbbestbatter1.Items.Add("Milinda Siriwardana") cmbbestbowler.Items.Add("Dasun Shanaka") cmbbestbatter1.Items.Add("Dasun Shanaka") cmbbestbowler.Items.Add("Suranga Lakmal") cmbbestbatter1.Items.Add("Suranga Lakmal") cmbbestbowler.Items.Add("Chaminda Bandara") cmbbestbatter1.Items.Add("Chaminda Bandara") cmbbestbowler.Items.Add("Nuwan Pradeep") cmbbestbatter1.Items.Add("Nuwan Pradeep") cmbbestbowler.Items.Add("Shaminda Eranga") cmbbestbatter1.Items.Add("Shaminda Eranga") ' England Test ElseIf cmbteam1.SelectedItem = "England Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Moeen Ali") cmbbestbowler.Items.Add("Alex Hales") cmbbestbatter1.Items.Add("Alex Hales") cmbbestbowler.Items.Add("Joe Root") cmbbestbatter1.Items.Add("Joe Root") cmbbestbowler.Items.Add("Alistair Cook") cmbbestbatter1.Items.Add("Alistair Cook") cmbbestbowler.Items.Add("Ben Stokes")

Page 55: SSD Major Portfolio

54

cmbbestbatter1.Items.Add("Ben Stokes") cmbbestbowler.Items.Add("Kevin Pietersen") cmbbestbatter1.Items.Add("Kevin Pietersen") cmbbestbowler.Items.Add("James Anderson") cmbbestbatter1.Items.Add("James Anderson") cmbbestbowler.Items.Add("Jos Butler") cmbbestbatter1.Items.Add("Jos Butler") cmbbestbowler.Items.Add("Ian Bell") cmbbestbatter1.Items.Add("Ian Bell") cmbbestbowler.Items.Add("Stuart Broad") cmbbestbatter1.Items.Add("Stuart Broad") cmbbestbowler.Items.Add("Stuart Finn") cmbbestbatter1.Items.Add("Stuart Finn") 'Bangledesh Test ElseIf cmbteam1.SelectedItem = "Bangledesh Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Mushfiqur Rahim") cmbbestbowler.Items.Add("Mushfiqur Rahim") cmbbestbowler.Items.Add("Tamim Iqbal") cmbbestbatter1.Items.Add("Tamim Iqbal") cmbbestbowler.Items.Add("Imrul Kayes") cmbbestbatter1.Items.Add("Imrul Kayes") cmbbestbowler.Items.Add("Mominul Haque") cmbbestbatter1.Items.Add("Mominul Haque") cmbbestbowler.Items.Add("Soumya Sarkar") cmbbestbatter1.Items.Add("Soumya Sarkar") cmbbestbowler.Items.Add("Shakib Al Hasan") cmbbestbatter1.Items.Add("Shakib Al Hasan") cmbbestbowler.Items.Add("Taijul Islam") cmbbestbatter1.Items.Add("Taijul Islam") cmbbestbowler.Items.Add("Shuvagata Hom") cmbbestbatter1.Items.Add("Shuvagata Hom") cmbbestbowler.Items.Add("Soumya Sarkar") cmbbestbatter1.Items.Add("Soumya Sarkar") cmbbestbowler.Items.Add("Mahmudullah") cmbbestbatter1.Items.Add("Mahmudullah") cmbbestbowler.Items.Add("Jubair Hossain") cmbbestbatter1.Items.Add("Jubair Hossain") 'New Zealand Test ElseIf cmbteam1.SelectedItem = "New Zealand Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Martin Guptill") cmbbestbowler.Items.Add("Kane Williamson") cmbbestbatter1.Items.Add("Kane Williamson") cmbbestbowler.Items.Add("Ross Taylor") cmbbestbatter1.Items.Add("Ross Taylor") cmbbestbowler.Items.Add("Brendon McCullum") cmbbestbatter1.Items.Add("Brendon McCullum") cmbbestbowler.Items.Add("Corey Anderson") cmbbestbatter1.Items.Add("Corey Anderson") cmbbestbowler.Items.Add("Luke Ronchi") cmbbestbatter1.Items.Add("Luke Ronchi") cmbbestbowler.Items.Add("Grant Elliot") cmbbestbatter1.Items.Add("Grant Elliot") cmbbestbowler.Items.Add("Nathan McCullum") cmbbestbatter1.Items.Add("Nathan McCullum")

Page 56: SSD Major Portfolio

55

cmbbestbowler.Items.Add("Daniel Vettori") cmbbestbatter1.Items.Add("Daniel Vettori") cmbbestbowler.Items.Add("Tim Southee") cmbbestbatter1.Items.Add("Tim Southee") cmbbestbowler.Items.Add("Trent Boult") cmbbestbatter1.Items.Add("Trent Boult") 'Pakistan Test ElseIf cmbteam1.SelectedItem = "Pakistan Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Misbah-ul-Haq") cmbbestbowler.Items.Add("Misbah-ul-Haq") cmbbestbowler.Items.Add("Safraz Ahmed") cmbbestbatter1.Items.Add("Safraz Ahmed") cmbbestbowler.Items.Add("Ahmed Shehzad") cmbbestbatter1.Items.Add("Ahmed Shehzad") cmbbestbowler.Items.Add("Haris Sohail") cmbbestbatter1.Items.Add("Haris Sohail") cmbbestbowler.Items.Add("Asad Shafiq") cmbbestbatter1.Items.Add("Asad Shafiq") cmbbestbowler.Items.Add("Imran Khan") cmbbestbatter1.Items.Add("Imran Khan") cmbbestbowler.Items.Add("Mohammad Hafeez") cmbbestbatter1.Items.Add("Mohammad Hafeez") cmbbestbowler.Items.Add("Rahat Ali") cmbbestbatter1.Items.Add("Rahat Ali") cmbbestbowler.Items.Add("Sohaib Maqsood") cmbbestbatter1.Items.Add("Sohaib Maqsood") cmbbestbowler.Items.Add("Wahab Riaz") cmbbestbatter1.Items.Add("Wahab Riaz") cmbbestbowler.Items.Add("Younis Khan") cmbbestbatter1.Items.Add("Younis Khan") 'Zimbabwe Test ElseIf cmbteam1.SelectedItem = "Zimbabwe Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Graeme Cremer") cmbbestbowler.Items.Add("Graeme Cremer") cmbbestbowler.Items.Add("Hamilton Masakadza") cmbbestbatter1.Items.Add("Hamilton Masakadza") cmbbestbowler.Items.Add("Chamu Chibhabha") cmbbestbatter1.Items.Add("Chamu Chibhabha") cmbbestbowler.Items.Add("Peter Moor") cmbbestbatter1.Items.Add("Peter Moor") cmbbestbowler.Items.Add("Richmond Mutumbami") cmbbestbatter1.Items.Add("Richmond Mutumbami") cmbbestbowler.Items.Add("Sean Williams") cmbbestbatter1.Items.Add("Sean Williams") cmbbestbowler.Items.Add("Tafadzwa Kamungozi") cmbbestbatter1.Items.Add("Tafadzwa Kamungozi") cmbbestbowler.Items.Add("Luke Jongwe") cmbbestbatter1.Items.Add("Luke Jongwe") cmbbestbowler.Items.Add("Tendai Chatara") cmbbestbatter1.Items.Add("Tendai Chatara") cmbbestbowler.Items.Add("Donald Tiripano") cmbbestbatter1.Items.Add("Donald Tiripano") cmbbestbowler.Items.Add("Tawanda Mupariwa") cmbbestbatter1.Items.Add("Tawanda Mupariwa")

Page 57: SSD Major Portfolio

56

'West Indies Test ElseIf cmbteam1.SelectedItem = "West Indies Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Carlos Brathwaite") cmbbestbowler.Items.Add("Carlos Brathwaite") cmbbestbowler.Items.Add("Jermaine Blackwood") cmbbestbatter1.Items.Add("Jermaine Blackwood") cmbbestbowler.Items.Add("Marlon Samuels") cmbbestbatter1.Items.Add("Marlon Samuels") cmbbestbowler.Items.Add("Danesh Ramdin") cmbbestbatter1.Items.Add("Danesh Ramdin") cmbbestbowler.Items.Add("Jason Holder") cmbbestbatter1.Items.Add("Jason Holder") cmbbestbowler.Items.Add("Darren Bravo") cmbbestbatter1.Items.Add("Darren Bravo") cmbbestbowler.Items.Add("Shane Dowrich") cmbbestbatter1.Items.Add("Shane Dowrich") cmbbestbowler.Items.Add("Shannon Gabriel") cmbbestbatter1.Items.Add("Shannon Gabriel") cmbbestbowler.Items.Add("Kraigg Braithwaite") cmbbestbatter1.Items.Add("Kraigg Braithwaite") cmbbestbowler.Items.Add("Kemar Roach") cmbbestbatter1.Items.Add("Kemar Roach") cmbbestbowler.Items.Add("Jerome Taylor") cmbbestbatter1.Items.Add("Jerome Taylor") 'India Test ElseIf cmbteam1.SelectedItem = "India Test" Then cmbbestbatter1.Items.Clear() cmbbestbowler.Items.Clear() cmbbestbatter1.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Shikhar Dhawan") cmbbestbowler.Items.Add("Rohit Sharma") cmbbestbatter1.Items.Add("Rohit Sharma") cmbbestbowler.Items.Add("Virat Kholi") cmbbestbatter1.Items.Add("Virat Kohli") cmbbestbowler.Items.Add("Suresh Raina") cmbbestbatter1.Items.Add("Suresh Raina") cmbbestbowler.Items.Add("Umesh Yadav") cmbbestbatter1.Items.Add("Umesh Yadav") cmbbestbowler.Items.Add("Axar Patel") cmbbestbatter1.Items.Add("Axar Patel") cmbbestbowler.Items.Add("Ajinkya Rahane") cmbbestbatter1.Items.Add("Ajinkya Rahane") cmbbestbowler.Items.Add("Ravindra Jadeja") cmbbestbatter1.Items.Add("Ravindra Jadeja") cmbbestbowler.Items.Add("Stuart Binny") cmbbestbatter1.Items.Add("Stuart Binny") cmbbestbowler.Items.Add("Ishant Sharma") cmbbestbatter1.Items.Add("Ishant Sharma") cmbbestbowler.Items.Add("Ravichandran Ashwin") cmbbestbatter1.Items.Add("Ravichandran Ashwin") End If Catch ex As Exception End Try End Sub

Page 58: SSD Major Portfolio

57

Private Sub cmbteam2_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles cmbteam2.SelectedIndexChanged Try If cmbteam2.SelectedItem = "Sydney Sixers" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Moses Henriques") cmbbestbowler2.Items.Add("Moses Henriques") cmbbestbatter2.Items.Add("Sean Abbott") cmbbestbowler2.Items.Add("Sean Abbott") cmbbestbatter2.Items.Add("Doug Bollinger") cmbbestbowler2.Items.Add("Doug Bollinger") cmbbestbatter2.Items.Add("Jackson Bird") cmbbestbowler2.Items.Add("Jackson Bird") cmbbestbatter2.Items.Add("Johan Botha") cmbbestbowler2.Items.Add("Johan Botha") cmbbestbatter2.Items.Add("Ed Cowan") cmbbestbowler2.Items.Add("Ed Cowan") cmbbestbatter2.Items.Add("Brad Haddin") cmbbestbowler2.Items.Add("Brad Haddin") cmbbestbatter2.Items.Add("Michael Lumb") cmbbestbowler2.Items.Add("Michael Lumb") cmbbestbatter2.Items.Add("Nic Maddinson") cmbbestbowler2.Items.Add("Nic Maddinson") cmbbestbatter2.Items.Add("Jordan Silk") cmbbestbowler2.Items.Add("Jordan Silk") cmbbestbatter2.Items.Add("Ryan Carters") cmbbestbowler2.Items.Add("Ryan Carters") ElseIf cmbteam2.SelectedItem = "Sydney Thunder" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Michael Hussey") cmbbestbowler2.Items.Add("Michael Hussey") cmbbestbowler2.Items.Add("Usman Khawaja") cmbbestbatter2.Items.Add("Usman Khawaja") cmbbestbowler2.Items.Add("Jacques Kallis") cmbbestbatter2.Items.Add("Jacques Kallis") cmbbestbowler2.Items.Add("Shane Watson") cmbbestbatter2.Items.Add("Shane Watson") cmbbestbowler2.Items.Add("Aiden Blizzard") cmbbestbatter2.Items.Add("Aiden Blizzard") cmbbestbatter2.Items.Add("Chris Hartley") cmbbestbowler2.Items.Add("Chris Hartley") cmbbestbatter2.Items.Add("Chris Green") cmbbestbowler2.Items.Add("Chris Green") cmbbestbatter2.Items.Add("Fawad Ahmed") cmbbestbowler2.Items.Add("Fawad Ahmed") cmbbestbatter2.Items.Add("Clint McKay") cmbbestbowler2.Items.Add("Clint Mckay") cmbbestbatter2.Items.Add("Ben Rorhrer") cmbbestbowler2.Items.Add("Ben Rorhrer") cmbbestbatter2.Items.Add("Andre Russell") cmbbestbowler2.Items.Add("Andre Russell") ElseIf cmbteam2.SelectedItem = "Brisbane Heat" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("James Pierson")

Page 59: SSD Major Portfolio

58

cmbbestbowler2.Items.Add("James Pierson") cmbbestbowler2.Items.Add("Nathan Reardon") cmbbestbatter2.Items.Add("Nathan Reardon") cmbbestbowler2.Items.Add("Chris Lynn") cmbbestbatter2.Items.Add("Chris Lynn") cmbbestbowler2.Items.Add("James Hopes") cmbbestbatter2.Items.Add("James Hopes") cmbbestbowler2.Items.Add("Ben Cutting") cmbbestbatter2.Items.Add("Ben Cutting") cmbbestbowler2.Items.Add("Joe Burns") cmbbestbatter2.Items.Add("Joe Burns") cmbbestbowler2.Items.Add("Luke Feldman") cmbbestbatter2.Items.Add("Luke Feldman") cmbbestbowler2.Items.Add("Jason Floros") cmbbestbatter2.Items.Add("Jason Floros") cmbbestbowler2.Items.Add("Andrew Fekete") cmbbestbatter2.Items.Add("Andrew Fekete") cmbbestbowler2.Items.Add("Samuel Badree") cmbbestbatter2.Items.Add("Samuel Badree") cmbbestbowler2.Items.Add("Alex Doolan") cmbbestbatter2.Items.Add("Alex Doolan") ElseIf cmbteam2.SelectedItem = "Melbourne Stars" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Hussey") cmbbestbowler2.Items.Add("David Hussey") cmbbestbowler2.Items.Add("Luke Wright") cmbbestbatter2.Items.Add("Luke Wright") cmbbestbowler2.Items.Add("Marcus Stoinis") cmbbestbatter2.Items.Add("Marcus Stoinis") cmbbestbowler2.Items.Add("Kevin Pietersen") cmbbestbatter2.Items.Add("Kevin Pietersen") cmbbestbowler2.Items.Add("Glenn Maxwell") cmbbestbatter2.Items.Add("Glenn Maxwell") cmbbestbowler2.Items.Add("Rob Quiney") cmbbestbatter2.Items.Add("Rob Quiney") cmbbestbowler2.Items.Add("James Faulkner") cmbbestbatter2.Items.Add("James Faulkner") cmbbestbowler2.Items.Add("Peter Handscomb") cmbbestbatter2.Items.Add("Peter Handscomb") cmbbestbowler2.Items.Add("John Hastings") cmbbestbatter2.Items.Add("John Hastings") cmbbestbowler2.Items.Add("Samuel Badree") cmbbestbatter2.Items.Add("Ben Hilfenhaus") cmbbestbowler2.Items.Add("Adam Zampa") cmbbestbatter2.Items.Add("Adam Zampa") ElseIf cmbteam2.SelectedItem = "Melbourne Renegades" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Aaron Finch") cmbbestbowler2.Items.Add("Aaron Finch") cmbbestbowler2.Items.Add("Chris Gayle") cmbbestbatter2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Cameron White") cmbbestbatter2.Items.Add("Cameron White") cmbbestbowler2.Items.Add("Matthew Wade") cmbbestbatter2.Items.Add("Matthew Wade") cmbbestbowler2.Items.Add("Tom Beaton") cmbbestbatter2.Items.Add("Tom Beaton") cmbbestbowler2.Items.Add("Dwayne Bravo") cmbbestbatter2.Items.Add("Dwayne Bravo") cmbbestbowler2.Items.Add("James Faulkner")

Page 60: SSD Major Portfolio

59

cmbbestbatter2.Items.Add("Xavier Doherty") cmbbestbowler2.Items.Add("Xavier Doherty") cmbbestbatter2.Items.Add("Callum Ferguson") cmbbestbowler2.Items.Add("Peter Siddle") cmbbestbatter2.Items.Add("Peter Siddle") cmbbestbowler2.Items.Add("Chris Tremain") cmbbestbatter2.Items.Add("Chris Tremain") cmbbestbowler2.Items.Add("Nathan Rimmington") cmbbestbatter2.Items.Add("Nathan Rimminington") ElseIf cmbteam2.SelectedItem = "Perth Scorchers" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Michael Carberry") cmbbestbowler2.Items.Add("Michael Carberry") cmbbestbowler2.Items.Add("Michael Klinger") cmbbestbatter2.Items.Add("Michael Klinger") cmbbestbowler2.Items.Add("Shaun Marsh") cmbbestbatter2.Items.Add("Shaun Marsh") cmbbestbowler2.Items.Add("Mitchell Marsh") cmbbestbatter2.Items.Add("Mitchell Marsh") cmbbestbowler2.Items.Add("Marcus Harris") cmbbestbatter2.Items.Add("Marcus Harris") cmbbestbowler2.Items.Add("David Willey") cmbbestbatter2.Items.Add("David Willey") cmbbestbowler2.Items.Add("Ashton Agar") cmbbestbatter2.Items.Add("Ashton Agar") cmbbestbowler2.Items.Add("Brad Hogg") cmbbestbatter2.Items.Add("Brad Hogg") cmbbestbowler2.Items.Add("Jason Behrendoff") cmbbestbatter2.Items.Add("Jason Behrendoff") cmbbestbowler2.Items.Add("Adam Voges") cmbbestbatter2.Items.Add("Adam Voges") cmbbestbowler2.Items.Add("Nathan Coulter Nile") cmbbestbatter2.Items.Add("Nathan Coulter Nile") ElseIf cmbteam2.SelectedItem = "Adelaide Strikers" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Brad Hodge") cmbbestbowler2.Items.Add("Brad Hodge") cmbbestbowler2.Items.Add("Craig Simmons") cmbbestbatter2.Items.Add("Craig Simmons") cmbbestbowler2.Items.Add("Tim Ludeman") cmbbestbatter2.Items.Add("Tim Ludeman") cmbbestbowler2.Items.Add("Travis Head") cmbbestbatter2.Items.Add("Travis Head") cmbbestbowler2.Items.Add("Alex Ross") cmbbestbatter2.Items.Add("Alex Ross") cmbbestbowler2.Items.Add("Miehala Jayawardne") cmbbestbatter2.Items.Add("Miehala Jayawardne") cmbbestbowler2.Items.Add("Ben Laughlin") cmbbestbatter2.Items.Add("Ben Laughlin") cmbbestbowler2.Items.Add("Kane Richardson") cmbbestbatter2.Items.Add("Kane Richardson") cmbbestbowler2.Items.Add("Gary Putland") cmbbestbatter2.Items.Add("Gary Putland") cmbbestbowler2.Items.Add("Kelvin Smith") cmbbestbatter2.Items.Add("Kelvin Smith") cmbbestbowler2.Items.Add("Keiron Pollard") cmbbestbatter2.Items.Add("Keiron Pollard") ElseIf cmbteam2.SelectedItem = "Hobart Hurricanes" Then cmbbestbatter2.Items.Clear()

Page 61: SSD Major Portfolio

60

cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Tim Paine") cmbbestbowler2.Items.Add("Tim Paine") cmbbestbowler2.Items.Add("Ben Dunk") cmbbestbatter2.Items.Add("Ben Dunk") cmbbestbowler2.Items.Add("Kumar Sangakara") cmbbestbatter2.Items.Add("Kumar Sangakara") cmbbestbowler2.Items.Add("George Bailey") cmbbestbatter2.Items.Add("George Bailey") cmbbestbowler2.Items.Add("Dan Chrisitian") cmbbestbatter2.Items.Add("Dan Christian") cmbbestbowler2.Items.Add("Darren Sammy") cmbbestbatter2.Items.Add("Darren Sammy") cmbbestbowler2.Items.Add("Clive Rose") cmbbestbatter2.Items.Add("Clive Rose") cmbbestbowler2.Items.Add("Shaun Tait") cmbbestbatter2.Items.Add("Shaun Tait") cmbbestbowler2.Items.Add("Simon Milenko") cmbbestbatter2.Items.Add("Simon Milenko") cmbbestbowler2.Items.Add("Jake Reed") cmbbestbatter2.Items.Add("Jake Reed") cmbbestbowler2.Items.Add("Sam Rainbird") cmbbestbatter2.Items.Add("Sam Rainbird") ' Kolkata Knight Riders ElseIf cmbteam2.SelectedItem = "Kolkata Knight Riders" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Guatam Ghambir") cmbbestbowler2.Items.Add("Guatam Ghambir") cmbbestbowler2.Items.Add("Sheldon Jackson") cmbbestbatter2.Items.Add("Sheldon Jackson") cmbbestbowler2.Items.Add("Chris Lynn") cmbbestbatter2.Items.Add("Chris Lynn") cmbbestbowler2.Items.Add("Sunil Narine") cmbbestbatter2.Items.Add("Sunil Narine") cmbbestbowler2.Items.Add("Andre Russell") cmbbestbatter2.Items.Add("Andre Russell") cmbbestbowler2.Items.Add("Piyush Chawla") cmbbestbatter2.Items.Add("Piyush Chawla") cmbbestbowler2.Items.Add("Shakib Al Hasan") cmbbestbatter2.Items.Add("Jason Holder") cmbbestbowler2.Items.Add("Jason Holder") cmbbestbatter2.Items.Add("John Hastings") cmbbestbowler2.Items.Add("John Hastings") cmbbestbatter2.Items.Add("Morne Morkel") cmbbestbowler2.Items.Add("Brad Hogg") cmbbestbatter2.Items.Add("Brad Hogg") cmbbestbowler2.Items.Add("Morne Morkel") cmbbestbatter2.Items.Add("Shakib Al Hasan") ' Mumbai Indians ElseIf cmbteam2.SelectedItem = "Mumbai Indians" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Rohit Sharma") cmbbestbowler2.Items.Add("Rohit Sharma") cmbbestbowler2.Items.Add("Corey Anderson") cmbbestbatter2.Items.Add("Corey Anderson") cmbbestbowler2.Items.Add("Vinay Kumar") cmbbestbatter2.Items.Add("Vinay Kumar")

Page 62: SSD Major Portfolio

61

cmbbestbowler2.Items.Add("Jos Butler") cmbbestbatter2.Items.Add("Jos Butler") cmbbestbowler2.Items.Add("Nitish Rana") cmbbestbatter2.Items.Add("Nitish Rana") cmbbestbowler2.Items.Add("Keiron Pollard") cmbbestbatter2.Items.Add("Keiron Pollard") cmbbestbowler2.Items.Add("Harbhajan Singh") cmbbestbatter2.Items.Add("Harbhajan Singh") cmbbestbowler2.Items.Add("Jasprit Bumrah") cmbbestbatter2.Items.Add("Jasprit Bumrah") cmbbestbowler2.Items.Add("Lasith Malinga") cmbbestbatter2.Items.Add("Lasith Malinga") cmbbestbowler2.Items.Add("Tim Southee") cmbbestbatter2.Items.Add("Tim Southee") cmbbestbowler2.Items.Add("Jitesh Sharma") cmbbestbatter2.Items.Add("Jitesh Sharma") ' Sunrisers Hyperbad ElseIf cmbteam2.SelectedItem = "Sunrisers Hyperbad" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Warner") cmbbestbowler2.Items.Add("David Warner") cmbbestbowler2.Items.Add("Eoin Morgan") cmbbestbatter2.Items.Add("Eoin Morgan") cmbbestbowler2.Items.Add("Kane Williamson") cmbbestbatter2.Items.Add("Kane Williamson") cmbbestbowler2.Items.Add("Yuvraj Singh") cmbbestbatter2.Items.Add("Yuvjraj Singh") cmbbestbowler2.Items.Add("Moses Henriques") cmbbestbatter2.Items.Add("Moses Henriques") cmbbestbowler2.Items.Add("Ricky Bhui") cmbbestbatter2.Items.Add("Ricky Bhui") cmbbestbowler2.Items.Add("Ashish Nehra") cmbbestbatter2.Items.Add("Ashish Nehra") cmbbestbowler2.Items.Add("Ben Cutting") cmbbestbatter2.Items.Add("Ben Cutting") cmbbestbowler2.Items.Add("Trent Boult") cmbbestbatter2.Items.Add("Trent Boult") cmbbestbowler2.Items.Add("Vijay Shankar") cmbbestbatter2.Items.Add("Vijay Shankar") cmbbestbowler2.Items.Add("Shikhar Dhawan") cmbbestbatter2.Items.Add("Shikhar Dhawan") ' Dehli Daredevils ElseIf cmbteam2.SelectedItem = "Dehli Daredevlis" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Quinton De Kock") cmbbestbowler2.Items.Add("Quinton De Kock") cmbbestbowler2.Items.Add("Amit Mishra") cmbbestbatter2.Items.Add("Amit Mishra") cmbbestbowler2.Items.Add("JP Duminy") cmbbestbatter2.Items.Add("JP Duminy") cmbbestbowler2.Items.Add("Travis Head") cmbbestbatter2.Items.Add("Travis Head") cmbbestbowler2.Items.Add("Mohammed Shami") cmbbestbatter2.Items.Add("Mohammed Shami") cmbbestbowler2.Items.Add("Zaheer Khan") cmbbestbatter2.Items.Add("Zaheer Khan") cmbbestbowler2.Items.Add("Carlos Braithwaite") cmbbestbatter2.Items.Add("Carlos Braithwaite")

Page 63: SSD Major Portfolio

62

cmbbestbowler2.Items.Add("Nathan Coulter Nile") cmbbestbatter2.Items.Add("Nathan Coulter Nile") cmbbestbowler2.Items.Add("Joel Paris") cmbbestbatter2.Items.Add("Joel Paris") cmbbestbowler2.Items.Add("Pawan Suyal") cmbbestbatter2.Items.Add("Pawan Suyal") cmbbestbowler2.Items.Add("Albie Morkel") cmbbestbatter2.Items.Add("Albie Morkel") 'Gujarat Lions ElseIf cmbteam2.SelectedItem = "Gujarat Lions" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Brendon McCullum") cmbbestbowler2.Items.Add("Brendon McCullum") cmbbestbowler2.Items.Add("Aaron Finch") cmbbestbatter2.Items.Add("Aaron Finch") cmbbestbowler2.Items.Add("Suresh Raina") cmbbestbatter2.Items.Add("Suresh Raina") cmbbestbowler2.Items.Add("Dwayne Smith") cmbbestbatter2.Items.Add("Dwayne Smith") cmbbestbowler2.Items.Add("Ishan Kishan") cmbbestbatter2.Items.Add("Ishan Kishan") cmbbestbowler2.Items.Add("James Faulkner") cmbbestbatter2.Items.Add("James Faulkner") cmbbestbowler2.Items.Add("Aksh Deep Nath") cmbbestbatter2.Items.Add("Aksh Deep Nath") cmbbestbowler2.Items.Add("Andrew Tye") cmbbestbatter2.Items.Add("Andrew Tye") cmbbestbowler2.Items.Add("Dale Steyn") cmbbestbatter2.Items.Add("Dale Steyn") cmbbestbowler2.Items.Add("Umang Sharma") cmbbestbatter2.Items.Add("Umang Sharm") cmbbestbowler2.Items.Add("Praveen Kumar") cmbbestbatter2.Items.Add("Praveen Kumar") 'Pune Supergiants ElseIf cmbteam2.SelectedItem = "Pune Supergiants" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("MS Dhoni") cmbbestbowler2.Items.Add("MS Dhoni") cmbbestbowler2.Items.Add("Faf du plesis") cmbbestbatter2.Items.Add("Faf du Plesis") cmbbestbowler2.Items.Add("Kevin Pietersen") cmbbestbatter2.Items.Add("Kevin Pietersen") cmbbestbowler2.Items.Add("Steve Smith") cmbbestbatter2.Items.Add("Steve Smith") cmbbestbowler2.Items.Add("Mitchell Marsh") cmbbestbatter2.Items.Add("Mitchell Marsh") cmbbestbowler2.Items.Add("RP Singh") cmbbestbatter2.Items.Add("RP Singh") cmbbestbowler2.Items.Add("Peter Handscomb") cmbbestbatter2.Items.Add("Peter Handscomb") cmbbestbowler2.Items.Add("Ishwar Pandey") cmbbestbatter2.Items.Add("Ishwar Pandey") cmbbestbowler2.Items.Add("Ankit Sharma") cmbbestbatter2.Items.Add("Ankit Sharma") cmbbestbowler2.Items.Add("Adam Zampa") cmbbestbatter2.Items.Add("Adam Zampa") cmbbestbowler2.Items.Add("Scott Boland") cmbbestbatter2.Items.Add("Scott Boland")

Page 64: SSD Major Portfolio

63

'Royal Challengers Bangalore ElseIf cmbteam2.SelectedItem = "Royal Challengers Bangalore" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Virat Kohli") cmbbestbatter2.Items.Add("Virat Kohli") cmbbestbowler2.Items.Add("AB Devilliers") cmbbestbatter2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("Shane Watson") cmbbestbatter2.Items.Add("Shane Watson") cmbbestbowler2.Items.Add("Safraz Khan") cmbbestbatter2.Items.Add("Safraz Khan") cmbbestbowler2.Items.Add("Harshal Patel") cmbbestbatter2.Items.Add("Harshal Patel") cmbbestbowler2.Items.Add("Praveen Dubbey") cmbbestbatter2.Items.Add("Praveen Dubbey") cmbbestbowler2.Items.Add("Ashkay Karnewar") cmbbestbatter2.Items.Add("Ashkay Karnewar") cmbbestbowler2.Items.Add("Vikramjeet Malik") cmbbestbatter2.Items.Add("Vikramjeet Malik") cmbbestbowler2.Items.Add("Kane Richardson") cmbbestbatter2.Items.Add("Kane Richardson") cmbbestbowler2.Items.Add("Mitchell Starc") cmbbestbatter2.Items.Add("Mitchell Starc") ' Kings XI Punjab ElseIf cmbteam2.SelectedItem = "Kings XI Punjab" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Miller") cmbbestbowler2.Items.Add("David Miller") cmbbestbowler2.Items.Add("Marcus Stoinis") cmbbestbatter2.Items.Add("Marcus Stoinis") cmbbestbowler2.Items.Add("Shaun Marsh") cmbbestbatter2.Items.Add("Shaun Marsh") cmbbestbowler2.Items.Add("Glenn Maxwell") cmbbestbatter2.Items.Add("Glenn Maxwell") cmbbestbowler2.Items.Add("Shardul Thakur") cmbbestbatter2.Items.Add("Shardul Thakur") cmbbestbowler2.Items.Add("Murali Vijay") cmbbestbatter2.Items.Add("Murali Vijay") cmbbestbowler2.Items.Add("Akshar Patel") cmbbestbatter2.Items.Add("Akshar Patel") cmbbestbowler2.Items.Add("Anureet Singh") cmbbestbatter2.Items.Add("Anureet Singh") cmbbestbowler2.Items.Add("Mitchell Johnson") cmbbestbatter2.Items.Add("Mitchell Johnson") cmbbestbowler2.Items.Add("Kyle Abbott") cmbbestbatter2.Items.Add("Kyle Abott") cmbbestbowler2.Items.Add("Pradeep Sahu") cmbbestbatter2.Items.Add("Pradeep Sahu") 'Australia T20 ElseIf cmbteam2.SelectedItem = "Australia T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Warner")

Page 65: SSD Major Portfolio

64

cmbbestbowler2.Items.Add("David Warner") cmbbestbowler2.Items.Add("Usman Khawaja") cmbbestbatter2.Items.Add("Usman Khawaja") cmbbestbowler2.Items.Add("Shane Watson") cmbbestbatter2.Items.Add("Shane Watson") cmbbestbowler2.Items.Add("Glenn Maxwell") cmbbestbatter2.Items.Add("Glenn Maxwell") cmbbestbowler2.Items.Add("Steve Smith") cmbbestbatter2.Items.Add("Steve Smith") cmbbestbowler2.Items.Add("Peter Nevill") cmbbestbatter2.Items.Add("Peter Nevill") cmbbestbowler2.Items.Add("John Hastings") cmbbestbatter2.Items.Add("John Hastings") cmbbestbowler2.Items.Add("James Faulkner") cmbbestbatter2.Items.Add("James Faulkner") cmbbestbowler2.Items.Add("Adam Zampa") cmbbestbatter2.Items.Add("Adam Zampa") cmbbestbowler2.Items.Add("Nathan Coulter Nile") cmbbestbatter2.Items.Add("Nathan Coulter Nile") cmbbestbowler2.Items.Add("Josh Hazlewood") cmbbestbatter2.Items.Add("Josh Hazlewood") 'South Africa T20 ElseIf cmbteam2.SelectedItem = "South Africa T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("Hashim Amla") cmbbestbatter2.Items.Add("Hashim Amla") cmbbestbowler2.Items.Add("David Miller") cmbbestbatter2.Items.Add("David Miller") cmbbestbowler2.Items.Add("Faf Du Plesis") cmbbestbatter2.Items.Add("Faf Du Plesis") cmbbestbowler2.Items.Add("Quinton De Kock") cmbbestbatter2.Items.Add("Quinton De Kock") cmbbestbowler2.Items.Add("Farhaan Behardien") cmbbestbatter2.Items.Add("Farhaan Behardien") cmbbestbowler2.Items.Add("Kyle Abbott") cmbbestbatter2.Items.Add("Kyle Abbott") cmbbestbowler2.Items.Add("David Wiese") cmbbestbatter2.Items.Add("David Wiese") cmbbestbowler2.Items.Add("Chris Morris") cmbbestbatter2.Items.Add("Chris Morris") cmbbestbowler2.Items.Add("Imran Tahir") cmbbestbatter2.Items.Add("Imran Tahir") cmbbestbowler2.Items.Add("Dale Steyn") cmbbestbatter2.Items.Add("Dale Steyn") ' Sri Lanka T20 ElseIf cmbteam2.SelectedItem = "Sri Lanka T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Angelo Matthews") cmbbestbowler2.Items.Add("Angelo Matthews") cmbbestbowler2.Items.Add("Dinesh Chandimal") cmbbestbatter2.Items.Add("Dinesh Chandimal") cmbbestbowler2.Items.Add("Shehan Jaysuria") cmbbestbatter2.Items.Add("Shehan Jaysuria") cmbbestbowler2.Items.Add("Tillakaratne Dishlan") cmbbestbatter2.Items.Add("Tillakaratne Dishlan") cmbbestbowler2.Items.Add("Milinda Siriwandana")

Page 66: SSD Major Portfolio

65

cmbbestbatter2.Items.Add("Milinda Siriwandana") cmbbestbowler2.Items.Add("Rangana Herath") cmbbestbatter2.Items.Add("Rangana Herath") cmbbestbowler2.Items.Add("Suranaga Lakmal") cmbbestbatter2.Items.Add("Suranaga Lakmal") cmbbestbowler2.Items.Add("Nuwan Kulasekara") cmbbestbatter2.Items.Add("Nuwan Kulasekara") cmbbestbowler2.Items.Add("Lahiru Thirimanne") cmbbestbatter2.Items.Add("Lahiru Thirimanne") cmbbestbowler2.Items.Add("Dasun Shanaka") cmbbestbatter2.Items.Add("Dasun Shanaka") cmbbestbowler2.Items.Add("Lasith Malinga") cmbbestbatter2.Items.Add("Lasith Malinga") ' England T20 ElseIf cmbteam2.SelectedItem = "England T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Alex Hales") cmbbestbatter2.Items.Add("Alex Hales") cmbbestbowler2.Items.Add("Joe Root") cmbbestbatter2.Items.Add("Joe Root") cmbbestbowler2.Items.Add("Eoin Morgan") cmbbestbatter2.Items.Add("Eoin Morgan") cmbbestbowler2.Items.Add("Ben Stokes") cmbbestbatter2.Items.Add("Ben Stokes") cmbbestbowler2.Items.Add("Jason Roy") cmbbestbatter2.Items.Add("Jason Roy") cmbbestbowler2.Items.Add("Sam Billings") cmbbestbatter2.Items.Add("Sam Billings") cmbbestbowler2.Items.Add("David Willey") cmbbestbatter2.Items.Add("David Willey") cmbbestbowler2.Items.Add("Chris Jordan") cmbbestbatter2.Items.Add("Chris Jordan") cmbbestbowler2.Items.Add("Liam Plunkett") cmbbestbatter2.Items.Add("Liam Plunkett") cmbbestbowler2.Items.Add("Adil Rashid") cmbbestbatter2.Items.Add("Adil Rashid") 'Bangledesh T20 ElseIf cmbteam2.SelectedItem = "Bangledesh T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Mashrafe Mortaza") cmbbestbowler2.Items.Add("Mashrafe Mortaza") cmbbestbowler2.Items.Add("Abu Hider") cmbbestbatter2.Items.Add("Abu Hider") cmbbestbowler2.Items.Add("Mahmullah") cmbbestbatter2.Items.Add("Mahmullah") cmbbestbowler2.Items.Add("Mushfiqur Rahim") cmbbestbatter2.Items.Add("Mushfiqur Rahim") cmbbestbowler2.Items.Add("Nasir Hossain") cmbbestbatter2.Items.Add("Nasir Hossain") cmbbestbowler2.Items.Add("Sabhir Rahman") cmbbestbatter2.Items.Add("Sabhir Rahman") cmbbestbowler2.Items.Add("Tanim Iqbal") cmbbestbatter2.Items.Add("Tanim Iqbal") cmbbestbowler2.Items.Add("Saqlain Sajib") cmbbestbatter2.Items.Add("Saqlain Sajib") cmbbestbowler2.Items.Add("Al-Amin Hossain")

Page 67: SSD Major Portfolio

66

cmbbestbatter2.Items.Add("Al-Amin Hossaimn") cmbbestbowler2.Items.Add("Nurul Hasan") cmbbestbatter2.Items.Add("Nurul Hasan") cmbbestbowler2.Items.Add("Muktar Ali") cmbbestbatter2.Items.Add("Muktar Ali") 'New Zealand T20 ElseIf cmbteam2.SelectedItem = "New Zealand T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Kane Williamson") cmbbestbatter2.Items.Add("Kane Williamson") cmbbestbowler2.Items.Add("Ross Taylor") cmbbestbatter2.Items.Add("Ross Taylor") cmbbestbowler2.Items.Add("Henry Nicholls") cmbbestbatter2.Items.Add("Henry Nicholls") cmbbestbowler2.Items.Add("Corey Anderson") cmbbestbatter2.Items.Add("Corey Anderson") cmbbestbowler2.Items.Add("Luke Ronchi") cmbbestbatter2.Items.Add("Luke Ronchi") cmbbestbowler2.Items.Add("Grant Elliot") cmbbestbatter2.Items.Add("Grant Elliot") cmbbestbowler2.Items.Add("Nathan McCullum") cmbbestbatter2.Items.Add("Nathan McCullum") cmbbestbowler2.Items.Add("Ish Sodhi") cmbbestbatter2.Items.Add("Ish Sodhi") cmbbestbowler2.Items.Add("Tim Southee") cmbbestbatter2.Items.Add("Tim Southee") cmbbestbowler2.Items.Add("Trent Boult") cmbbestbatter2.Items.Add("Trent Boult") 'Pakistan T20 ElseIf cmbteam2.SelectedItem = "Pakistan T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Anwar Ali") cmbbestbowler2.Items.Add("Anwar Ali") cmbbestbowler2.Items.Add("Mohammed Hafeez") cmbbestbatter2.Items.Add("Mohammed Hafeez") cmbbestbowler2.Items.Add("Khalid Latif") cmbbestbatter2.Items.Add("Khalid latif") cmbbestbowler2.Items.Add("Shoaib Malik") cmbbestbatter2.Items.Add("Shoaib Malik") cmbbestbowler2.Items.Add("Shahid Afridi") cmbbestbatter2.Items.Add("Shahid Afridi") cmbbestbowler2.Items.Add("Ahmed Shezad") cmbbestbatter2.Items.Add("Ahmed Shezad") cmbbestbowler2.Items.Add("Imad Wasim") cmbbestbatter2.Items.Add("Imad Wasim") cmbbestbowler2.Items.Add("Mohammed Ifran") cmbbestbatter2.Items.Add("Mohammed Ifran") cmbbestbowler2.Items.Add("Mohammed Sami") cmbbestbatter2.Items.Add("Mohammed Sami") cmbbestbowler2.Items.Add("Mohammed Amir") cmbbestbatter2.Items.Add("Mohammed Amir") cmbbestbowler2.Items.Add("Umar Akmal") cmbbestbatter2.Items.Add("Umar Akmal") 'Zimbabwe T20

Page 68: SSD Major Portfolio

67

ElseIf cmbteam2.SelectedItem = "Zimbabwe T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Hamilton Masakadaza") cmbbestbowler2.Items.Add("Hamilton Masakadaza") cmbbestbowler2.Items.Add("Chamu Chibhabha") cmbbestbatter2.Items.Add("Chamu Chibhabha") cmbbestbowler2.Items.Add("Tendai Chisoro") cmbbestbatter2.Items.Add("Tendai Chisoro") cmbbestbowler2.Items.Add("Peter Moor") cmbbestbatter2.Items.Add("Peter Moor") cmbbestbowler2.Items.Add("Richard Mutumbami") cmbbestbatter2.Items.Add("Richard Mutumbami") cmbbestbowler2.Items.Add("Vusi Sibanda") cmbbestbatter2.Items.Add("Vusi Sibanda") cmbbestbowler2.Items.Add("Donald Tiripano") cmbbestbatter2.Items.Add("Donald Tiripano") cmbbestbowler2.Items.Add("Sean Williams") cmbbestbatter2.Items.Add("Sean Williams") cmbbestbowler2.Items.Add("Tendai Chatara") cmbbestbatter2.Items.Add("Tendai Chatara") cmbbestbowler2.Items.Add("Elton Chigumbura") cmbbestbatter2.Items.Add("Elton Chigumbura") cmbbestbowler2.Items.Add("Sikandar Raza") cmbbestbatter2.Items.Add("Sikandar Raza") 'West Indies T20 ElseIf cmbteam2.SelectedItem = "West Indies T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Carlos Braithwaite") cmbbestbatter2.Items.Add("Carlos Braithwaite") cmbbestbowler2.Items.Add("Marlon Samuels") cmbbestbatter2.Items.Add("Marlon Samuels") cmbbestbowler2.Items.Add("Dwayne Bravo") cmbbestbatter2.Items.Add("Dwayne Bravo") cmbbestbowler2.Items.Add("Andre Russell") cmbbestbatter2.Items.Add("Andre Russell") cmbbestbowler2.Items.Add("Danesh Ramdin") cmbbestbatter2.Items.Add("Danesh Ramdin") cmbbestbowler2.Items.Add("Darren Sammy") cmbbestbatter2.Items.Add("Darren Sammy") cmbbestbowler2.Items.Add("Jason Holder") cmbbestbatter2.Items.Add("Jason Holder") cmbbestbowler2.Items.Add("Sulieman Benn") cmbbestbatter2.Items.Add("Sulieman Benn") cmbbestbowler2.Items.Add("Johnson Charles") cmbbestbatter2.Items.Add("Johnson Charles") cmbbestbowler2.Items.Add("Jerome Taylor") cmbbestbatter2.Items.Add("Jerome Taylor") 'India T20 ElseIf cmbteam2.SelectedItem = "India T20" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Rohit Sharma") cmbbestbatter2.Items.Add("Rohit Sharma")

Page 69: SSD Major Portfolio

68

cmbbestbowler2.Items.Add("Virat Kholi") cmbbestbatter2.Items.Add("Virat Kohli") cmbbestbowler2.Items.Add("Yujraj Singh") cmbbestbatter2.Items.Add("Yujraj Singh") cmbbestbowler2.Items.Add("MS Dhoni") cmbbestbatter2.Items.Add("MS Dhoni") cmbbestbowler2.Items.Add("Suresh Raina") cmbbestbatter2.Items.Add("Suresh Raina") cmbbestbowler2.Items.Add("Ajinkya Rahane") cmbbestbatter2.Items.Add("Ajinkya Rahane") cmbbestbowler2.Items.Add("Manish Pandey") cmbbestbatter2.Items.Add("Manish Pandey") cmbbestbowler2.Items.Add("Harbhajan Singh") cmbbestbatter2.Items.Add("Harbhajan Singh") cmbbestbowler2.Items.Add("Jasprit Bumrah") cmbbestbatter2.Items.Add("Jasprit Bumrah") cmbbestbowler2.Items.Add("Ravichandran Ashwin") cmbbestbatter2.Items.Add("Ravichandran Ashwin") 'Australia ODI ElseIf cmbteam2.SelectedItem = "Australia ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Warner") cmbbestbowler2.Items.Add("David Warner") cmbbestbowler2.Items.Add("Aaron Finch") cmbbestbatter2.Items.Add("Aaron Finch") cmbbestbowler2.Items.Add("Shane Watson") cmbbestbatter2.Items.Add("Shane Watson") cmbbestbowler2.Items.Add("Glenn Maxwell") cmbbestbatter2.Items.Add("Glenn Maxwell") cmbbestbowler2.Items.Add("Steve Smith") cmbbestbatter2.Items.Add("Steve Smith") cmbbestbowler2.Items.Add("Brad Haddin") cmbbestbatter2.Items.Add("Brad Haddin") cmbbestbowler2.Items.Add("Michael Clarke") cmbbestbatter2.Items.Add("Michael Clarke") cmbbestbowler2.Items.Add("James Faulkner") cmbbestbatter2.Items.Add("James Faulkner") cmbbestbowler2.Items.Add("Mitchell Marsh") cmbbestbatter2.Items.Add("Mitchell Marsh") cmbbestbowler2.Items.Add("Mitchell Starc") cmbbestbatter2.Items.Add("Mitchell Starc") cmbbestbowler2.Items.Add("Josh Hazlewood") cmbbestbatter2.Items.Add("Josh Hazlewood") 'South Africa ODI ElseIf cmbteam2.SelectedItem = "South Africa ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("Hashim Amla") cmbbestbatter2.Items.Add("Hashim Amla") cmbbestbowler2.Items.Add("David Miller") cmbbestbatter2.Items.Add("David Miller") cmbbestbowler2.Items.Add("Faf Du Plesis") cmbbestbatter2.Items.Add("Faf Du Plesis") cmbbestbowler2.Items.Add("Quinton De Kock") cmbbestbatter2.Items.Add("Quinton De Kock") cmbbestbowler2.Items.Add("JP Duminy") cmbbestbatter2.Items.Add("JP Duminy")

Page 70: SSD Major Portfolio

69

cmbbestbowler2.Items.Add("Kyle Abbott") cmbbestbatter2.Items.Add("Kyle Abbott") cmbbestbowler2.Items.Add("Rilee Rossuow") cmbbestbatter2.Items.Add("Rilee Rossuow") cmbbestbowler2.Items.Add("Morne Morkel") cmbbestbatter2.Items.Add("Morne Morkel") cmbbestbowler2.Items.Add("Imran Tahir") cmbbestbatter2.Items.Add("Imran Tahir") cmbbestbowler2.Items.Add("Dale Steyn") cmbbestbatter2.Items.Add("Dale Steyn") ' Sri Lanka ODI ElseIf cmbteam2.SelectedItem = "Sri Lanka ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Angelo Matthews") cmbbestbowler2.Items.Add("Angelo Matthews") cmbbestbowler2.Items.Add("Dushmantha Chameera") cmbbestbatter2.Items.Add("Dushmantha Chameera") cmbbestbowler2.Items.Add("Lahiru Thirimanne") cmbbestbatter2.Items.Add("Lahiru Thirimanne") cmbbestbowler2.Items.Add("Tillakaratne Dishlan") cmbbestbatter2.Items.Add("Tillakaratne Dishlan") cmbbestbowler2.Items.Add("Mahela Jayawardene") cmbbestbatter2.Items.Add("Mahela Jayawardene") cmbbestbowler2.Items.Add("Kumar Sangakara") cmbbestbatter2.Items.Add("Kumar Sangakara") cmbbestbowler2.Items.Add("Tharindu Kaushal") cmbbestbatter2.Items.Add("Tharindu Kaushal") cmbbestbowler2.Items.Add("Thisara Perera") cmbbestbatter2.Items.Add("Thisara Perera") cmbbestbowler2.Items.Add("Kusal Perera") cmbbestbatter2.Items.Add("Kusal Perera") cmbbestbowler2.Items.Add("Upul Tharanga") cmbbestbatter2.Items.Add("Upul Tharanga") cmbbestbowler2.Items.Add("Lasith Malinga") cmbbestbatter2.Items.Add("Lasith Malinga") ' England ODI ElseIf cmbteam2.SelectedItem = "England ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Alex Hales") cmbbestbatter2.Items.Add("Alex Hales") cmbbestbowler2.Items.Add("Joe Root") cmbbestbatter2.Items.Add("Joe Root") cmbbestbowler2.Items.Add("Eoin Morgan") cmbbestbatter2.Items.Add("Eoin Morgan") cmbbestbowler2.Items.Add("Ben Stokes") cmbbestbatter2.Items.Add("Ben Stokes") cmbbestbowler2.Items.Add("Jason Roy") cmbbestbatter2.Items.Add("Jason Roy") cmbbestbowler2.Items.Add("James Anderson") cmbbestbatter2.Items.Add("James Anderson") cmbbestbowler2.Items.Add("Ravi Bopara") cmbbestbatter2.Items.Add("Ravi Bopara") cmbbestbowler2.Items.Add("Chris Jordan") cmbbestbatter2.Items.Add("Chris Jordan") cmbbestbowler2.Items.Add("Stuart Broad") cmbbestbatter2.Items.Add("Stuart Broad")

Page 71: SSD Major Portfolio

70

cmbbestbowler2.Items.Add("Stuart Finn") cmbbestbatter2.Items.Add("Stuart Finn") 'Bangledesh ODI ElseIf cmbteam2.SelectedItem = "Bangledesh ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Imrul Keyes") cmbbestbowler2.Items.Add("Imrul Keyes") cmbbestbowler2.Items.Add("Mahmudullah") cmbbestbatter2.Items.Add("Mahmudullah") cmbbestbowler2.Items.Add("Arafat Sunny") cmbbestbatter2.Items.Add("Arafat Sunny") cmbbestbowler2.Items.Add("Mashrafe Mortaza") cmbbestbatter2.Items.Add("Mashrafe Mortaza") cmbbestbowler2.Items.Add("Sabbir Rahman") cmbbestbatter2.Items.Add("Sabbir Rahman") cmbbestbowler2.Items.Add("Mushfiqur Rahim") cmbbestbatter2.Items.Add("Mushfiqur Rahim") cmbbestbowler2.Items.Add("Tanim Iqbal") cmbbestbatter2.Items.Add("Tanim Iqbal") cmbbestbowler2.Items.Add("Sabbir Hossain") cmbbestbatter2.Items.Add("Sabbir Hossain") cmbbestbowler2.Items.Add("Nasir Hossain") cmbbestbatter2.Items.Add("Nasir Hossain") cmbbestbowler2.Items.Add("Tajul Islam") cmbbestbatter2.Items.Add("Tajul Islam") cmbbestbowler2.Items.Add("Taskin Ahmed") cmbbestbatter2.Items.Add("Taskin Ahmed") 'New Zealand ODI ElseIf cmbteam2.SelectedItem = "New Zealand ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Kane Williamson") cmbbestbatter2.Items.Add("Kane Williamson") cmbbestbowler2.Items.Add("Ross Taylor") cmbbestbatter2.Items.Add("Ross Taylor") cmbbestbowler2.Items.Add("Brendon McCullum") cmbbestbatter2.Items.Add("Brendon McCullum") cmbbestbowler2.Items.Add("Corey Anderson") cmbbestbatter2.Items.Add("Corey Anderson") cmbbestbowler2.Items.Add("Luke Ronchi") cmbbestbatter2.Items.Add("Luke Ronchi") cmbbestbowler2.Items.Add("Grant Elliot") cmbbestbatter2.Items.Add("Grant Elliot") cmbbestbowler2.Items.Add("Nathan McCullum") cmbbestbatter2.Items.Add("Nathan McCullum") cmbbestbowler2.Items.Add("Daniel Vettori") cmbbestbatter2.Items.Add("Daniel Vettori") cmbbestbowler2.Items.Add("Tim Southee") cmbbestbatter2.Items.Add("Tim Southee") cmbbestbowler2.Items.Add("Trent Boult") cmbbestbatter2.Items.Add("Trent Boult") 'Pakistan ODI ElseIf cmbteam2.SelectedItem = "Pakistan ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear()

Page 72: SSD Major Portfolio

71

cmbbestbatter2.Items.Add("Misbah-ul-Haq") cmbbestbowler2.Items.Add("Misbah-ul-Haq") cmbbestbowler2.Items.Add("Safraz Ahmed") cmbbestbatter2.Items.Add("Safraz Ahmed") cmbbestbowler2.Items.Add("Umar Akmal") cmbbestbatter2.Items.Add("Umar Akmal") cmbbestbowler2.Items.Add("Haris Sohail") cmbbestbatter2.Items.Add("Haris Sohail") cmbbestbowler2.Items.Add("Shahid Afridi") cmbbestbatter2.Items.Add("Shahid Afridi") cmbbestbowler2.Items.Add("Rahat Ali") cmbbestbatter2.Items.Add("Rahat Ali") cmbbestbowler2.Items.Add("Eshan Adil") cmbbestbatter2.Items.Add("Eshan Adil") cmbbestbowler2.Items.Add("Sohail Khan") cmbbestbatter2.Items.Add("Sohail Khan") cmbbestbowler2.Items.Add("Sohaib Maqsood") cmbbestbatter2.Items.Add("Sohaib Maqsood") cmbbestbowler2.Items.Add("Wahab Riaz") cmbbestbatter2.Items.Add("Wahab Riaz") cmbbestbowler2.Items.Add("Younis Khan") cmbbestbatter2.Items.Add("Younis Khan") 'Zimbabwe ODI ElseIf cmbteam2.SelectedItem = "Zimbabwe ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Elton Chigumbura") cmbbestbowler2.Items.Add("Elton Chigumbura") cmbbestbowler2.Items.Add("Regis Chakabva") cmbbestbatter2.Items.Add("Regis Chakabva") cmbbestbowler2.Items.Add("Brendon Taylor") cmbbestbatter2.Items.Add("Brendon Taylor") cmbbestbowler2.Items.Add("Craig Ervine") cmbbestbatter2.Items.Add("Craig Ervine") cmbbestbowler2.Items.Add("Solomon Mire") cmbbestbatter2.Items.Add("Solomon Mire") cmbbestbowler2.Items.Add("Chamu Chibhabha") cmbbestbatter2.Items.Add("Chamu Chibhabha") cmbbestbowler2.Items.Add("Chamu Chibhabha") cmbbestbatter2.Items.Add("Chamu Chibhabha") cmbbestbowler2.Items.Add("Sean Williams") cmbbestbatter2.Items.Add("Sean Williams") cmbbestbowler2.Items.Add("Stuart Matiksikenyeri") cmbbestbatter2.Items.Add("Stuart Matiksikenyeri") cmbbestbowler2.Items.Add("Hamilton Masakadaza") cmbbestbatter2.Items.Add("Hamilton Masakadaza") cmbbestbowler2.Items.Add("Sikandar Raza") cmbbestbatter2.Items.Add("Sikandar Raza") 'West Indies ODI ElseIf cmbteam2.SelectedItem = "West Indies ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Chris Gayle") cmbbestbowler2.Items.Add("Dwayne Smith") cmbbestbatter2.Items.Add("Dwayne Smith") cmbbestbowler2.Items.Add("Marlon Samuels") cmbbestbatter2.Items.Add("Marlon Samuels") cmbbestbowler2.Items.Add("Danesh Ramdin")

Page 73: SSD Major Portfolio

72

cmbbestbatter2.Items.Add("Danesh Ramdin") cmbbestbowler2.Items.Add("Jason Holder") cmbbestbatter2.Items.Add("Jason Holder") cmbbestbowler2.Items.Add("Andre Russell") cmbbestbatter2.Items.Add("Andre Russell") cmbbestbowler2.Items.Add("Darren Sammy") cmbbestbatter2.Items.Add("Darren Sammy") cmbbestbowler2.Items.Add("Nikita Simmons") cmbbestbatter2.Items.Add("Nikita Simmons") cmbbestbowler2.Items.Add("Lendl Simmons") cmbbestbatter2.Items.Add("Lendl Simmons") cmbbestbowler2.Items.Add("Kemar Roach") cmbbestbatter2.Items.Add("Kemar Roach") cmbbestbowler2.Items.Add("Jerome Taylor") cmbbestbatter2.Items.Add("Jerome Taylor") 'India ODI ElseIf cmbteam2.SelectedItem = "India ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Rohit Sharma") cmbbestbatter2.Items.Add("Rohit Sharma") cmbbestbowler2.Items.Add("Virat Kholi") cmbbestbatter2.Items.Add("Virat Kohli") cmbbestbowler2.Items.Add("Suresh Raina") cmbbestbatter2.Items.Add("Suresh Raina") cmbbestbowler2.Items.Add("MS Dhoni") cmbbestbatter2.Items.Add("MS Dhoni") cmbbestbowler2.Items.Add("Axar Patel") cmbbestbatter2.Items.Add("Axar Patel") cmbbestbowler2.Items.Add("Ajinkya Rahane") cmbbestbatter2.Items.Add("Ajinkya Rahane") cmbbestbowler2.Items.Add("Ravindra Jadeja") cmbbestbatter2.Items.Add("Ravindra Jadeja") cmbbestbowler2.Items.Add("Stuart Binny") cmbbestbatter2.Items.Add("Stuart Binny") cmbbestbowler2.Items.Add("Mohammed Shami") cmbbestbatter2.Items.Add("Mohammed Shami") cmbbestbowler2.Items.Add("Ravichandran Ashwin") cmbbestbatter2.Items.Add("Ravichandran Ashwin") 'Australia Test ElseIf cmbteam2.SelectedItem = "Australia ODI" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("David Warner") cmbbestbowler2.Items.Add("David Warner") cmbbestbowler2.Items.Add("Joe Burns") cmbbestbatter2.Items.Add("Joe Burns") cmbbestbowler2.Items.Add("Usman Khwaja") cmbbestbatter2.Items.Add("Shane Watson") cmbbestbowler2.Items.Add("Adam Voges") cmbbestbatter2.Items.Add("Adam Voges") cmbbestbowler2.Items.Add("Steve Smith") cmbbestbatter2.Items.Add("Steve Smith") cmbbestbowler2.Items.Add("Jackson Bird") cmbbestbatter2.Items.Add("Jackson Bird") cmbbestbowler2.Items.Add("Peter Neville")

Page 74: SSD Major Portfolio

73

cmbbestbatter2.Items.Add("Peter Neville") cmbbestbowler2.Items.Add("Nathan Lyon") cmbbestbatter2.Items.Add("Nathan Lyon") cmbbestbowler2.Items.Add("Mitchell Marsh") cmbbestbatter2.Items.Add("Mitchell Marsh") cmbbestbowler2.Items.Add("Mitchell Starc") cmbbestbatter2.Items.Add("Mitchell Starc") cmbbestbowler2.Items.Add("Josh Hazlewood") cmbbestbatter2.Items.Add("Josh Hazlewood") 'South Africa Test ElseIf cmbteam2.SelectedItem = "South Africa Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("AB Devilliers") cmbbestbowler2.Items.Add("Hashim Amla") cmbbestbatter2.Items.Add("Hashim Amla") cmbbestbowler2.Items.Add("Stiaan van Zyl") cmbbestbatter2.Items.Add("Stiaan van Zyl") cmbbestbowler2.Items.Add("Faf Du Plesis") cmbbestbatter2.Items.Add("Faf Du Plesis") cmbbestbowler2.Items.Add("Dane Vilas") cmbbestbatter2.Items.Add("Dane Vilas") cmbbestbowler2.Items.Add("JP Duminy") cmbbestbatter2.Items.Add("JP Duminy") cmbbestbowler2.Items.Add("Kyle Abbott") cmbbestbatter2.Items.Add("Kyle Abbott") cmbbestbowler2.Items.Add("Kagiso Rabada") cmbbestbatter2.Items.Add("Kagiso Rabada") cmbbestbowler2.Items.Add("Morne Morkel") cmbbestbatter2.Items.Add("Morne Morkel") cmbbestbowler2.Items.Add("Imran Tahir") cmbbestbatter2.Items.Add("Imran Tahir") cmbbestbowler2.Items.Add("Dale Steyn") cmbbestbatter2.Items.Add("Dale Steyn") ' Sri Lanka Test ElseIf cmbteam2.SelectedItem = "Sri Lanka Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Dimuth Karunaratne") cmbbestbowler2.Items.Add("Dimuth Karunaratne") cmbbestbowler2.Items.Add("Lahiru Thirimanne") cmbbestbatter2.Items.Add("Lahiru Thirimanne") cmbbestbowler2.Items.Add("Dinesh Chandimal") cmbbestbatter2.Items.Add("Dinesh Chandimal") cmbbestbowler2.Items.Add("Kusal Perera") cmbbestbatter2.Items.Add("Kusal Perera") cmbbestbowler2.Items.Add("Angelo Mathews") cmbbestbatter2.Items.Add("Angelo Mathews") cmbbestbowler2.Items.Add("Milinda Siriwardana") cmbbestbatter2.Items.Add("Milinda Siriwardana") cmbbestbowler2.Items.Add("Dasun Shanaka") cmbbestbatter2.Items.Add("Dasun Shanaka") cmbbestbowler2.Items.Add("Suranga Lakmal") cmbbestbatter2.Items.Add("Suranga Lakmal") cmbbestbowler2.Items.Add("Chaminda Bandara") cmbbestbatter2.Items.Add("Chaminda Bandara") cmbbestbowler2.Items.Add("Nuwan Pradeep") cmbbestbatter2.Items.Add("Nuwan Pradeep") cmbbestbowler2.Items.Add("Shaminda Eranga")

Page 75: SSD Major Portfolio

74

cmbbestbatter2.Items.Add("Shaminda Eranga") ' England Test ElseIf cmbteam2.SelectedItem = "England Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Moeen Ali") cmbbestbowler2.Items.Add("Alex Hales") cmbbestbatter2.Items.Add("Alex Hales") cmbbestbowler2.Items.Add("Joe Root") cmbbestbatter2.Items.Add("Joe Root") cmbbestbowler2.Items.Add("Alistair Cook") cmbbestbatter2.Items.Add("Alistair Cook") cmbbestbowler2.Items.Add("Ben Stokes") cmbbestbatter2.Items.Add("Ben Stokes") cmbbestbowler2.Items.Add("Kevin Pietersen") cmbbestbatter2.Items.Add("Kevin Pietersen") cmbbestbowler2.Items.Add("James Anderson") cmbbestbatter2.Items.Add("James Anderson") cmbbestbowler2.Items.Add("Jos Butler") cmbbestbatter2.Items.Add("Jos Butler") cmbbestbowler2.Items.Add("Ian Bell") cmbbestbatter2.Items.Add("Ian Bell") cmbbestbowler2.Items.Add("Stuart Broad") cmbbestbatter2.Items.Add("Stuart Broad") cmbbestbowler2.Items.Add("Stuart Finn") cmbbestbatter2.Items.Add("Stuart Finn") 'Bangledesh Test ElseIf cmbteam2.SelectedItem = "Bangledesh Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Mushfiqur Rahim") cmbbestbowler2.Items.Add("Mushfiqur Rahim") cmbbestbowler2.Items.Add("Tamim Iqbal") cmbbestbatter2.Items.Add("Tamim Iqbal") cmbbestbowler2.Items.Add("Imrul Kayes") cmbbestbatter2.Items.Add("Imrul Kayes") cmbbestbowler2.Items.Add("Mominul Haque") cmbbestbatter2.Items.Add("Mominul Haque") cmbbestbowler2.Items.Add("Soumya Sarkar") cmbbestbatter2.Items.Add("Soumya Sarkar") cmbbestbowler2.Items.Add("Shakib Al Hasan") cmbbestbatter2.Items.Add("Shakib Al Hasan") cmbbestbowler2.Items.Add("Taijul Islam") cmbbestbatter2.Items.Add("Taijul Islam") cmbbestbowler2.Items.Add("Shuvagata Hom") cmbbestbatter2.Items.Add("Shuvagata Hom") cmbbestbowler2.Items.Add("Soumya Sarkar") cmbbestbatter2.Items.Add("Soumya Sarkar") cmbbestbowler2.Items.Add("Mahmudullah") cmbbestbatter2.Items.Add("Mahmudullah") cmbbestbowler2.Items.Add("Jubair Hossain") cmbbestbatter2.Items.Add("Jubair Hossain") 'New Zealand Test ElseIf cmbteam2.SelectedItem = "New Zealand Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear()

Page 76: SSD Major Portfolio

75

cmbbestbatter2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Martin Guptill") cmbbestbowler2.Items.Add("Kane Williamson") cmbbestbatter2.Items.Add("Kane Williamson") cmbbestbowler2.Items.Add("Ross Taylor") cmbbestbatter2.Items.Add("Ross Taylor") cmbbestbowler2.Items.Add("Brendon McCullum") cmbbestbatter2.Items.Add("Brendon McCullum") cmbbestbowler2.Items.Add("Corey Anderson") cmbbestbatter2.Items.Add("Corey Anderson") cmbbestbowler2.Items.Add("Luke Ronchi") cmbbestbatter2.Items.Add("Luke Ronchi") cmbbestbowler2.Items.Add("Grant Elliot") cmbbestbatter2.Items.Add("Grant Elliot") cmbbestbowler2.Items.Add("Nathan McCullum") cmbbestbatter2.Items.Add("Nathan McCullum") cmbbestbowler2.Items.Add("Daniel Vettori") cmbbestbatter2.Items.Add("Daniel Vettori") cmbbestbowler2.Items.Add("Tim Southee") cmbbestbatter2.Items.Add("Tim Southee") cmbbestbowler2.Items.Add("Trent Boult") cmbbestbatter2.Items.Add("Trent Boult") 'Pakistan Test ElseIf cmbteam2.SelectedItem = "Pakistan Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Misbah-ul-Haq") cmbbestbowler2.Items.Add("Misbah-ul-Haq") cmbbestbowler2.Items.Add("Safraz Ahmed") cmbbestbatter2.Items.Add("Safraz Ahmed") cmbbestbowler2.Items.Add("Ahmed Shehzad") cmbbestbatter2.Items.Add("Ahmed Shehzad") cmbbestbowler2.Items.Add("Haris Sohail") cmbbestbatter2.Items.Add("Haris Sohail") cmbbestbowler2.Items.Add("Asad Shafiq") cmbbestbatter2.Items.Add("Asad Shafiq") cmbbestbowler2.Items.Add("Imran Khan") cmbbestbatter2.Items.Add("Imran Khan") cmbbestbowler2.Items.Add("Mohammad Hafeez") cmbbestbatter2.Items.Add("Mohammad Hafeez") cmbbestbowler2.Items.Add("Rahat Ali") cmbbestbatter2.Items.Add("Rahat Ali") cmbbestbowler2.Items.Add("Sohaib Maqsood") cmbbestbatter2.Items.Add("Sohaib Maqsood") cmbbestbowler2.Items.Add("Wahab Riaz") cmbbestbatter2.Items.Add("Wahab Riaz") cmbbestbowler2.Items.Add("Younis Khan") cmbbestbatter2.Items.Add("Younis Khan") 'Zimbabwe Test ElseIf cmbteam2.SelectedItem = "Zimbabwe Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Graeme Cremer") cmbbestbowler2.Items.Add("Graeme Cremer") cmbbestbowler2.Items.Add("Hamilton Masakadza") cmbbestbatter2.Items.Add("Hamilton Masakadza") cmbbestbowler2.Items.Add("Chamu Chibhabha") cmbbestbatter2.Items.Add("Chamu Chibhabha") cmbbestbowler2.Items.Add("Peter Moor") cmbbestbatter2.Items.Add("Peter Moor")

Page 77: SSD Major Portfolio

76

cmbbestbowler2.Items.Add("Richmond Mutumbami") cmbbestbatter2.Items.Add("Richmond Mutumbami") cmbbestbowler2.Items.Add("Sean Williams") cmbbestbatter2.Items.Add("Sean Williams") cmbbestbowler2.Items.Add("Tafadzwa Kamungozi") cmbbestbatter2.Items.Add("Tafadzwa Kamungozi") cmbbestbowler2.Items.Add("Luke Jongwe") cmbbestbatter2.Items.Add("Luke Jongwe") cmbbestbowler2.Items.Add("Tendai Chatara") cmbbestbatter2.Items.Add("Tendai Chatara") cmbbestbowler2.Items.Add("Donald Tiripano") cmbbestbatter2.Items.Add("Donald Tiripano") cmbbestbowler2.Items.Add("Tawanda Mupariwa") cmbbestbatter2.Items.Add("Tawanda Mupariwa") 'West Indies Test ElseIf cmbteam2.SelectedItem = "West Indies Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Carlos Brathwaite") cmbbestbowler2.Items.Add("Carlos Brathwaite") cmbbestbowler2.Items.Add("Jermaine Blackwood") cmbbestbatter2.Items.Add("Jermaine Blackwood") cmbbestbowler2.Items.Add("Marlon Samuels") cmbbestbatter2.Items.Add("Marlon Samuels") cmbbestbowler2.Items.Add("Danesh Ramdin") cmbbestbatter2.Items.Add("Danesh Ramdin") cmbbestbowler2.Items.Add("Jason Holder") cmbbestbatter2.Items.Add("Jason Holder") cmbbestbowler2.Items.Add("Darren Bravo") cmbbestbatter2.Items.Add("Darren Bravo") cmbbestbowler2.Items.Add("Shane Dowrich") cmbbestbatter2.Items.Add("Shane Dowrich") cmbbestbowler2.Items.Add("Shannon Gabriel") cmbbestbatter2.Items.Add("Shannon Gabriel") cmbbestbowler2.Items.Add("Kraigg Braithwaite") cmbbestbatter2.Items.Add("Kraigg Braithwaite") cmbbestbowler2.Items.Add("Kemar Roach") cmbbestbatter2.Items.Add("Kemar Roach") cmbbestbowler2.Items.Add("Jerome Taylor") cmbbestbatter2.Items.Add("Jerome Taylor") 'India Test ElseIf cmbteam2.SelectedItem = "India Test" Then cmbbestbatter2.Items.Clear() cmbbestbowler2.Items.Clear() cmbbestbatter2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Shikhar Dhawan") cmbbestbowler2.Items.Add("Rohit Sharma") cmbbestbatter2.Items.Add("Rohit Sharma") cmbbestbowler2.Items.Add("Virat Kholi") cmbbestbatter2.Items.Add("Virat Kohli") cmbbestbowler2.Items.Add("Suresh Raina") cmbbestbatter2.Items.Add("Suresh Raina") cmbbestbowler2.Items.Add("Umesh Yadav") cmbbestbatter2.Items.Add("Umesh Yadav") cmbbestbowler2.Items.Add("Axar Patel") cmbbestbatter2.Items.Add("Axar Patel") cmbbestbowler2.Items.Add("Ajinkya Rahane") cmbbestbatter2.Items.Add("Ajinkya Rahane") cmbbestbowler2.Items.Add("Ravindra Jadeja") cmbbestbatter2.Items.Add("Ravindra Jadeja")

Page 78: SSD Major Portfolio

77

cmbbestbowler2.Items.Add("Stuart Binny") cmbbestbatter2.Items.Add("Stuart Binny") cmbbestbowler2.Items.Add("Ishant Sharma") cmbbestbatter2.Items.Add("Ishant Sharma") cmbbestbowler2.Items.Add("Ravichandran Ashwin") cmbbestbatter2.Items.Add("Ravichandran Ashwin") End If Catch ex As Exception End Try End Sub Private Sub btnhelp_Click(sender As System.Object, e As System.EventArgs) Handles btnhelp.Click Help.Show() End Sub End Class

frmViewGames

Public Class ViewGames Private Sub ViewGames_Load(sender As System.Object, e As System.EventArgs) LoadGamesFile() For i = 0 To UBound(arrGames) If arrGames(i).DateGame >= Format(Now, "yyyy-MM-dd") Then lstgames.Items.Add(arrGames(i).DateGame & vbTab & arrGames(i).Type & vbTab & arrGames(i).Team1 & vbTab & arrGames(i).Team2 & vbTab & arrGames(i).Team1innings & vbTab & arrGames(i).Bestbatting1 & vbTab & arrGames(i).BattingRuns1 & vbTab & arrGames(i).Bestbowling2 & vbTab & arrGames(i).BowlingFigures2 & vbTab & arrGames(i).Team2innings & vbTab & arrGames(i).Bestbatting2 & vbTab & arrGames(i).BattingRuns2 & vbTab & arrGames(i).Bestbowling1 & vbTab & arrGames(i).Bowlingfigures) End If Next 'End If 'LoadGamesFile() MsgBox("load file complete") End Sub Private Sub btnviewall_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) lstgames.Items.Clear() For i = 0 To UBound(arrGames) lstgames.Items.Add(arrGames(i).DateGame & vbTab & arrGames(i).Type & vbTab & arrGames(i).Team1 & vbTab & arrGames(i).Team2 & vbTab & arrGames(i).Team1innings & vbTab & arrGames(i).Bestbatting1 & vbTab & arrGames(i).BattingRuns1 & vbTab & arrGames(i).Bestbowling2 & vbTab & arrGames(i).BowlingFigures2 & vbTab & arrGames(i).Team2innings & vbTab & arrGames(i).Bestbatting2 & vbTab & arrGames(i).BattingRuns2 & vbTab & arrGames(i).Bestbowling1 & vbTab & arrGames(i).Bowlingfigures) Next End Sub Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsearch.Click Dim SearchText As String SearchText = txtSearch.Text Dim found As Boolean = False lstgames.Items.Clear()

Page 79: SSD Major Portfolio

78

If txtSearch.Text = "" Then MsgBox("Please enter team name") Exit Sub Else For i = 0 To UBound(arrGames) If arrGames(i).Team1 = SearchText Then found = True lstgames.Items.Add(arrGames(i).DateGame & vbTab & arrGames(i).Type & vbTab & arrGames(i).Team1 & vbTab & arrGames(i).Team2 & vbTab & arrGames(i).Team1innings & vbTab & arrGames(i).Bestbatting1 & vbTab & arrGames(i).BattingRuns1 & vbTab & arrGames(i).Bestbowling2 & vbTab & arrGames(i).BowlingFigures2 & vbTab & arrGames(i).Team2innings & vbTab & arrGames(i).Bestbatting2 & vbTab & arrGames(i).BattingRuns2 & vbTab & arrGames(i).Bestbowling1 & vbTab & arrGames(i).Bowlingfigures) End If Next End If If txtsearch.Text = "" Then MsgBox("Please enter team name") Exit Sub Else For i = 0 To UBound(arrGames) If arrGames(i).Team2 = SearchText Then found = True lstgames.Items.Add(arrGames(i).DateGame & vbTab & arrGames(i).Type & vbTab & arrGames(i).Team1 & vbTab & arrGames(i).Team2 & vbTab & arrGames(i).Team1innings & vbTab & arrGames(i).Bestbatting1 & vbTab & arrGames(i).BattingRuns1 & vbTab & arrGames(i).Bestbowling2 & vbTab & arrGames(i).BowlingFigures2 & vbTab & arrGames(i).Team2innings & vbTab & arrGames(i).Bestbatting2 & vbTab & arrGames(i).BattingRuns2 & vbTab & arrGames(i).Bestbowling1 & vbTab & arrGames(i).Bowlingfigures) End If Next End If If found = False Then MsgBox("Team not found", MsgBoxStyle.Exclamation) txtSearch.Text = "" Exit Sub End If End Sub Private Sub cmdsortdate_Click(sender As System.Object, e As System.EventArgs) Handles cmdsortdate.Click 'selection sort by date lstgames.Items.Clear() Dim first As Integer = 0 Dim maxminpos As Integer = 0 Dim temp As Game If RadioButton1.Checked = True Then 'sort Ascending While first <= UBound(arrGames) For i = first To UBound(arrGames) If arrGames(i).DateGame < arrGames(maxminpos).DateGame Then maxminpos = i End If Next temp = arrGames(maxminpos) arrGames(maxminpos) = arrGames(first) arrGames(first) = temp first = first + 1 maxminpos = first End While

Page 80: SSD Major Portfolio

79

Else While first <= UBound(arrGames) 'sort Decending For i = first To UBound(arrGames) If arrGames(i).DateGame > arrGames(maxminpos).DateGame Then maxminpos = i End If Next temp = arrGames(maxminpos) arrGames(maxminpos) = arrGames(first) arrGames(first) = temp first = first + 1 maxminpos = first End While End If For i = 0 To UBound(arrGames) 'If arrGames(i).DateGame >= Format(Now, "yyyy-MM-dd") Then If arrGames(i).DateGame = True Then lstgames.Items.Add(arrGames(i).DateGame & vbTab & arrGames(i).Type & vbTab & arrGames(i).Team1 & vbTab & arrGames(i).Team2 & vbTab & arrGames(i).Team1innings & vbTab & arrGames(i).Bestbatting1 & vbTab & arrGames(i).BattingRuns1 & vbTab & arrGames(i).Bestbowling2 & vbTab & arrGames(i).BowlingFigures2 & vbTab & arrGames(i).Team2innings & vbTab & arrGames(i).Bestbatting2 & vbTab & arrGames(i).BattingRuns2 & vbTab & arrGames(i).Bestbowling1 & vbTab & arrGames(i).Bowlingfigures) 'End If End If Next End Sub Private Sub btnhelp_Click(sender As System.Object, e As System.EventArgs) Handles btnhelp.Click Help.Show() End Sub Private Sub btnback_Click(sender As System.Object, e As System.EventArgs) Handles btnback.Click Main_Menu.Show() Me.Hide() End Sub End Class

frmHelp

Public Class Help Private Sub Help_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load End Sub End Class

User Interface Development

frmSplashScreen

Page 81: SSD Major Portfolio

80

Page 82: SSD Major Portfolio

81

frmLogin

Page 83: SSD Major Portfolio

82

frmMainMenu

Page 84: SSD Major Portfolio

83

frmCreatePlayers

Page 85: SSD Major Portfolio

84

frmCreateGame

Page 86: SSD Major Portfolio

85

frmView

Page 87: SSD Major Portfolio

86

frmHelp

Page 88: SSD Major Portfolio

87

User Manual

Part 4- Testing and Maintaining the solution

Test Plan and Report

Test Data Expected Result Actual Result

Username Reads login File

Loads Main Menu

Reads login File

Loads Main Menu

Password Reads login File

Loads Main Menu

Reads login File

Loads Main Menu

New Username Writes to Login file Writes to Login file

Password Writes to Login file Writes to Login file

Confirms Password Writes to Login file Writes to Login file

Game Type Selects game type

Writes to player file

Selects game type

Writes to player file

Date Selects Date

Writes to player file

Selects Date

Writes to player file

Teams Selecting Team 1 Team

2

Writes to file

Selecting Team 1 Team

2

Writes to file

Batting Totals Batting total writes to

file

Batting total writes to

file

Best Batter Selecting Best

performer

Writes to file

Selecting Best

performer

Writes to file

Best Bowler Selecting Best

performer

Writes to file

Selecting Best

performer

Writes to file

Best Batter runs Writes to file Writes to file

Best bowler figures Writes to file Writes to file

Name Writes to file Writes to file

Page 89: SSD Major Portfolio

88

Surname Writes to file Writes to file

Tpye Type selected

Writes to file

Type selected

Writes to file

Australian Domestic

Team

Team Selected

Writes to file

Team Selected

Writes to file

IPL team Team Selected

Writes to file

Team Selected

Writes to file

International T20 Team Team Selected

Writes to file

Team Selected

Writes to file

International ODI Team Team Selected

Writes to file

Team Selected

Writes to file

International Test Team Team Selected

Writes to file

Team Selected

Writes to file

Batting Average Team Selected

Writes to file

Team Selected

Writes to file

Bowling Average Team Selected

Writes to file

Team Selected

Writes to file

Maintenance Overview

If I ever could make extra improvements and changes to the program would be having a form which

comprises of videos, pictures and music relating to the cricket, i reckon that compilations would be

successful entertaining the user. I would update the code to have extra features for my viewing,

extra sorting and searching variables to be able to find in an extra criteria. The last improvement I

would make was to make the user interface more freindly and make it more inclusive for

provisioners.

Part 5- Social and Ethical Issues

SOCIAL AND ETHICAL ISSUES OVERVIEW

Issues for the Intellectual Property I would have to refer to saying that this is not my code but I used

it from different sources. The design of and idea of the of the program is my all idea and the Rights

belong to me. The pictures are not made by me but I have collected them from various resources

from different websites. The photoshopped picture is creaeted by myslef but the pictures do not

belong.

Page 90: SSD Major Portfolio

89

The quality of the program in my opinion considerd to be very well done. The quality may not loom

the best but it looks substantial and up to date. The program uses buttons and the coding part of

the program all works. There should be more declaring variables and other code.

The program in my opinion isnt as inclusive as I wanted it to be. The program should have audio for

visual impared to help the user guide their wa through the program. The colours are different which

helps the users not to look at the same ol same old stuff. For a death person (not sure how to say it)

the text should have been larger for the user to easily access the program.

The software will only be used on a windows supported hardware. The software should be what the

customers want. In this program, the program provides creaeting games, create players and view

results. The testing of the program shouldve went for a lot longer theat could improve and make

the program better as before. The interface design should be improved if it was given a few more

weeks. The support for the user should be able to help the user enough to get them out of the

errors they have.

Justification of Social and Ethical Issues in relation to Major Project

The strategies used in the project that is relevant to scoial and ethical issues, I used various people

to help use the project identify any ethical issues. I had a few ethical issues that resulted me in

changing a particular area of the project. Code was difficult and did not make sense. Code

sometimes did not work which forced me for help to find out what was wrong. Arguably 90% of the

of the time people that I asked for assistance managed to find the errors and helped me fix the

problem. Code should referenced more and more details about the code. If the project was to be

worldwide I would have to get authorisation to use players names and teams and especially logos

for teams.

Documentation and Project work

Learning Journal

https://2016majorblograsmelbournesound.blogspot.com.au/

Project Work, Collaboration, Communication, Organisation and Effort