/// <summary> /// Clears out all text boxes and returns limits to their original state. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnReset_Click(object sender, EventArgs e) { txtCharacterName.Clear(); TxtDefense.Clear(); TxtStrength.Clear(); TxtVitality.Clear(); AllocationLimit = 10; RandomizeLimit = 5; LblAllocation.Text = Convert.ToString(AllocationLimit); LblRandomAlottment.Text = Convert.ToString(RandomizeLimit); }
private void BtnClear_Click(object sender, RoutedEventArgs e) { CmbPlayer.SelectedIndex = 0; TxtAcceleration.Clear(); TxtAgility.Clear(); TxtDribbling.Clear(); TxtFinishing.Clear(); TxtFitness.Clear(); TxtHeading.Clear(); TxtHeight.Clear(); TxtJumping.Clear(); TxtLeadership.Clear(); TxtLongShots.Clear(); TxtPace.Clear(); TxtPassing.Clear(); TxtPenalty.Clear(); TxtStamina.Clear(); TxtStrength.Clear(); TxtTeamWork.Clear(); TxtTechnique.Clear(); TxtWeight.Clear(); }
private void BtnClear_Click(object sender, RoutedEventArgs e) { CmbPlayer.SelectedIndex = 0; TxtBravery.Clear(); TxtConcentration.Clear(); TxtCrossing.Clear(); TxtDribbling.Clear(); TxtHeading.Clear(); TxtHeight.Clear(); TxtJumping.Clear(); TxtLeadership.Clear(); TxtLongShots.Clear(); TxtStamina.Clear(); TxtMarking.Clear(); TxtPassing.Clear(); TxtWeight.Clear(); TxtPositioning.Clear(); TxtStrength.Clear(); TxtTackling.Clear(); TxtWorkRate.Clear(); }