private void EditTournament()
        {
            int si = 0;

            try
            {
                si = lvwTournaments.SelectedItems[0].Index;
            }
            catch
            {
                MessageBox.Show("Please select the tournament you want to update");
                return;
            }
            Tournament selectedTournament = list[si];

            if (selectedTournament.tournamentStatus == 3 || selectedTournament.tournamentStatus == 2)
            {
                MessageBox.Show("Sorry you cannot modify this tournament that already active or close");
                return;
            }

            using (Form f = new frmSaveTournament(selectedTournament))
            {
                f.StartPosition = FormStartPosition.CenterParent;
                f.ShowDialog();

                if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    //refresh the list of teams
                    displayTournament();
                }
            }
        }
        private void SaveTournament()
        {
            using (Form f = new frmSaveTournament())
            {
                f.StartPosition = FormStartPosition.CenterParent;
                f.ShowDialog();

                if (f.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    //refresh the list of teams
                    displayTournament();
                }
            }
        }