/// <summary>
        /// Event handler raised when the user places the bet for the current bettor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void OnPlaceBet(object sender, RoutedEventArgs e)
        {
            try
            {
                //Obtain the bet amount
                int betAmount = int.Parse(_txtBetAmount.Text);

                //Determine the racer the bet is on
                ComboBoxItem racerItem = _cmbRaceHoundNo.SelectedItem as ComboBoxItem;

                int racerNo = int.Parse(racerItem.Content.ToString());

                //Ask the current bettor to place a bet

                //Calls PlaceBet method and returns an int value
                int switchValue = _crtSelBettor.PlaceBet(betAmount, racerNo);

                //Switch statements to determine exception error handling or to continue to update labels.
                switch (switchValue)
                {
                //Checks if bet is less than 5
                case 0:
                    throw new InvalidOperationException("Bet amount must be greater than or equal to 5");

                //User defined exception that checks if the bettor has enough money
                case 1:

                    throw new InsufficientFundsException($"{_crtSelBettor.Name} does not have enough money to place this bet.");

                //updates the bet labels changing bettor name and the amount they bet. Also says that a bettor has now placed a bet.
                case 2:
                    UpdateBettorLabels(_crtSelBettor);
                    break;
                }
            }

            //The follwoing are the catch operators for the previous exception try statements
            catch (InvalidOperationException ioEx)
            {
                _txtBetAmount.Text = "N/A";
                MessageDialog msgDlg = new MessageDialog(ioEx.Message);
                await msgDlg.ShowAsync();
            }

            catch (InsufficientFundsException ifEx)
            {
                _txtBetAmount.Text = "N/A";
                MessageDialog msgDlg = new MessageDialog(ifEx.Message);
                await msgDlg.ShowAsync();
            }

            catch (FormatException)
            {
                _txtBetAmount.Text = "N/A";

                MessageDialog msgDlg = new MessageDialog("Invalid Input\nPlease enter a certain amount of money within your balanace.");
                await msgDlg.ShowAsync();
            }

            catch (NullReferenceException)
            {
                MessageDialog msgDlg = new MessageDialog("Please select a better and place a bet before placing bets");
                await msgDlg.ShowAsync();
            }
        }