public CaricaGironiDaDisciplina(bool export)
        {
            InitializeComponent();
            var dbType = Helper.GetDbType();

            this.StartPosition = FormStartPosition.CenterScreen;

            if (export)
            {
                this.buttonOk.Text = "Carica Risultati";
            }

            List <TorneoEntity> tornei = !export?SqlDal_Tournaments.GetTorneiAttivi(false) : SqlDal_Tournaments.GetTorneiConclusi(false);

            this.comboBox1.DataSource            = tornei.ToArray();
            this.comboBox1.ValueMember           = "Id";
            this.comboBox1.DisplayMember         = "Name";
            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.ComboBox1_SelectedIndexChanged);

            //La inizializzo a 0
            List <DisciplinaEntity> discipline = SqlDal_Tournaments.GetDisciplineByIdTorneo(0);

            this.comboBox2.DataSource    = discipline.ToArray();
            this.comboBox2.ValueMember   = "IdDisciplina";
            this.comboBox2.DisplayMember = "Nome";



            buttonOk.DialogResult     = DialogResult.OK;
            buttonCancel.DialogResult = DialogResult.Abort;
        }
 private void LoadClosedTournaments()
 {
     closedTournamentList = SqlDal_Tournaments.GetTorneiConclusi(true);
     dataGridClosedTournament.ItemsSource = closedTournamentList;
 }