private void loadDatabases()
 {
     m_pdEventInfo = new PDEventInfo(m_eventName, Constants.getEventInformationFileName(m_eventName), false);
     eventSetupPropertyGrid.SelectedObject = m_pdEventInfo;
     namesDataGridView.DataSource          = loadTable(Constants.TableName.EventNames);
     loadTable(Constants.TableName.EventScores);
     m_resultsPublishParameters = new ResultsPublishParameters(m_eventName, Constants.getResultsPublishParametersFileName(m_eventName), true);
     resultsPublishPropertyGrid.SelectedObject = m_resultsPublishParameters;
     if (string.IsNullOrWhiteSpace(m_resultsPublishParameters.ResultsWebsite))
     {
         m_resultsPublishParameters.ResultsWebsite = Constants.getEventResultsWebsite(m_eventName);
     }
 }
Exemplo n.º 2
0
 private void initialize()
 {
     this.Text = NiniUtilities.getStringValue(Constants.getCurrentTourneyInformationFileName(), Constants.TourneyNameFieldName) + " : " + m_eventName;
     Utilities.SetDataGridViewProperties(this);
     m_knockoutSessions = new KnockoutSessions(eventSetupPropertyGrid, m_eventName, m_niniFileName, m_databaseFileName, true);
     knockoutSessionsDataGridView.DataSource = AccessDatabaseUtilities.getDataTable(m_databaseFileName, Constants.TableName.KnockoutSessions);
     knockoutNamesDataGridView.DataSource    = AccessDatabaseUtilities.getDataTable(m_databaseFileName, Constants.TableName.KnockoutTeams);
     populateKnockoutRounds();
     m_resultsPublishParameters = new ResultsPublishParameters(m_eventName, Constants.getResultsPublishParametersFileName(m_eventName), true);
     resultsPublishPropertyGrid.SelectedObject = m_resultsPublishParameters;
     if (string.IsNullOrWhiteSpace(m_resultsPublishParameters.ResultsWebsite))
     {
         m_resultsPublishParameters.ResultsWebsite = Constants.getEventResultsWebsite(m_eventName);
     }
 }