private void BtnClear_Click(object sender, RoutedEventArgs e)
 {
     CmbPlayer.SelectedIndex = 0;
     TxtAgility.Clear(); TxtAnticipation.Clear(); TxtCommunication.Clear(); TxtDecisions.Clear(); TxtJumping.Clear();
     TxtKicking.Clear(); TxtOneOnOnes.Clear(); TxtPenalty.Clear(); TxtPositioning.Clear();
     TxtThrowing.Clear(); TxtVision.Clear(); TxtWeight.Clear(); TxtHeight.Clear();
 }
 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();
 }
        /// <summary>
        /// Weight calculated.
        /// </summary>
        /// <returns></returns>
        private async Task <bool> IsWeightEntered()
        {
            if (string.IsNullOrWhiteSpace(TxtWeight.Text))
            {
                await DisplayAlert("Fail", "Uhh, you forgot to enter in your weight.\n\nThis is the only error check.\n\nIf you fail to enter any other information this app will crash or give you the wrong results. That's completely on you if you're starving or gain weight due to following incorrectly calculated macros.\n\nDon't be a bad end-user, finish filling in the form.", "Aww Shoot!");

                TxtWeight.Focus();
                return(false);
            }
            return(true);
        }
 private void BtnAddNew_OnClick(object sender, RoutedEventArgs e)
 {
     TxtWeight.Focus();
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     TxtWeight.Focus();
 }
 public MainPage()
 {
     InitializeComponent();
     Appearing += (object sender, EventArgs e) => TxtWeight.Focus();
 }