private void CreateTournamentButton_Click(object sender, EventArgs e)
        {
            TournamentModel tm = new TournamentModel();

            decimal fee           = 0;
            bool    FeeAccaptable = decimal.TryParse(EntryFeeTextBox.Text, out fee);

            tm.TournamentName = EnterTournamentNameTextBox.Text;
            tm.EntryFee       = fee;
            tm.Prizes         = SelectedPrizes;
            tm.EnterdTeams    = selectedTeams;

            TournamentValidator validation = new TournamentValidator();
            var    result  = validation.Validate(tm);
            string message = "";

            if (!result.IsValid)
            {
                foreach (ValidationFailure res in result.Errors)
                {
                    message += $"{res}\n";
                }
                MessageBox.Show(message,
                                "error",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
                return;
            }
            if (!FeeAccaptable)
            {
                MessageBox
                .Show("entry fee is not a valid number ", "error",
                      MessageBoxButtons.OK,
                      MessageBoxIcon.Error);
                return;
            }



            TournamentLogic.CreateRounds(tm);

            GlobalConfig.Connaction.CreateTournament(tm);

            tm.AlertUsersToNewRound();


            TournamentViewerForm frm = new TournamentViewerForm(tm);

            frm.Show();
            this.Close();
        }