private void SetPrizeStruct() { switch (this.playerBonusScoreInt / 2) { case 6: this.prizes = new PrizesStruct(PRIZE_6, 6); break; case 5: this.prizes = new PrizesStruct(PRIZE_5, 5); break; case 4: this.prizes = new PrizesStruct(PRIZE_4, 4); break; case 3: this.prizes = new PrizesStruct(PRIZE_3, 3); break; case 2: this.prizes = new PrizesStruct(PRIZE_2, 2); break; case 1: this.prizes = new PrizesStruct(PRIZE_1, 1); break; default: this.prizes = new PrizesStruct(PRIZE_0, 0); break; } }
// ********************** event handlers END ******************************* // ********************** MY methods START ********************************* private void ClearInput() { this.displayLabel.Text = ""; this.playerComboBox.SelectedIndex = -1; this.numPlaysTextBox.Clear(); this.playerComboBox.Focus(); this.playerScoreInt = 0; this.playerBonusScoreInt = 0; this.prizes = new PrizesStruct(); this.CurrencyComboBox.SelectedIndex = -1; this.fastPlayCheckBox.Checked = false; }